We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c83d14 commit b68e3a7Copy full SHA for b68e3a7
client/modules/IDE/pages/IDEView.jsx
@@ -671,7 +671,8 @@ IDEView.propTypes = {
671
function mapStateToProps(state) {
672
return {
673
files: state.files,
674
- selectedFile: state.files.find(file => file.isSelectedFile),
+ selectedFile: state.files.find(file => file.isSelectedFile) ||
675
+ state.files.find(file => file.name === 'sketch.js'),
676
htmlFile: getHTMLFile(state.files),
677
ide: state.ide,
678
preferences: state.preferences,
0 commit comments