diff --git a/client/modules/IDE/pages/IDEView.jsx b/client/modules/IDE/pages/IDEView.jsx index 9ee6c794..97fa1398 100644 --- a/client/modules/IDE/pages/IDEView.jsx +++ b/client/modules/IDE/pages/IDEView.jsx @@ -671,7 +671,8 @@ IDEView.propTypes = { function mapStateToProps(state) { return { files: state.files, - selectedFile: state.files.find(file => file.isSelectedFile), + selectedFile: state.files.find(file => file.isSelectedFile) || + state.files.find(file => file.name === 'sketch.js'), htmlFile: getHTMLFile(state.files), ide: state.ide, preferences: state.preferences,