From 33848e24345f6543b8bd2a0a36c90c2c514c2c81 Mon Sep 17 00:00:00 2001 From: ghalestrilo Date: Tue, 18 Aug 2020 17:24:20 -0300 Subject: [PATCH] :bug: fix missing files on sidebar --- client/components/mobile/ActionStrip.jsx | 2 +- client/modules/IDE/pages/MobileIDEView.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/components/mobile/ActionStrip.jsx b/client/components/mobile/ActionStrip.jsx index 7486d1e5..b8465477 100644 --- a/client/components/mobile/ActionStrip.jsx +++ b/client/components/mobile/ActionStrip.jsx @@ -38,7 +38,7 @@ const ActionStrip = ({ actions }) => ( ActionStrip.propTypes = { actions: PropTypes.arrayOf(PropTypes.shape({ - icon: PropTypes.element.isRequired, + icon: PropTypes.any, aria: PropTypes.string.isRequired, action: PropTypes.func.isRequired, inverted: PropTypes.bool diff --git a/client/modules/IDE/pages/MobileIDEView.jsx b/client/modules/IDE/pages/MobileIDEView.jsx index 0841da80..6067807c 100644 --- a/client/modules/IDE/pages/MobileIDEView.jsx +++ b/client/modules/IDE/pages/MobileIDEView.jsx @@ -183,7 +183,6 @@ const MobileIDEView = (props) => { const { consoleIsExpanded } = ide; const { name: filename } = selectedFile; - // Force state reset useEffect(clearPersistedState, []); useEffect(() => { @@ -338,6 +337,7 @@ function mapStateToProps(state) { state.files.find(file => file.name === 'sketch.js') || state.files.find(file => file.name !== 'root'), ide: state.ide, + files: state.files, unsavedChanges: state.ide.unsavedChanges, preferences: state.preferences, user: state.user,