This commit is contained in:
Cassie Tarakajian 2018-11-26 18:08:24 -05:00
parent 5c83d14b63
commit b68e3a79fd

View file

@ -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,