for #687
This commit is contained in:
parent
5c83d14b63
commit
b68e3a79fd
1 changed files with 2 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue