From b68e3a79fdaa7edabdb154a4f61921c00bb3c408 Mon Sep 17 00:00:00 2001 From: Cassie Tarakajian Date: Mon, 26 Nov 2018 18:08:24 -0500 Subject: [PATCH] for #687 --- client/modules/IDE/pages/IDEView.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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,