🐛 fix missing files on sidebar

This commit is contained in:
ghalestrilo 2020-08-18 17:24:20 -03:00
parent 09c8f771b6
commit 33848e2434
2 changed files with 2 additions and 2 deletions

View file

@ -38,7 +38,7 @@ const ActionStrip = ({ actions }) => (
ActionStrip.propTypes = { ActionStrip.propTypes = {
actions: PropTypes.arrayOf(PropTypes.shape({ actions: PropTypes.arrayOf(PropTypes.shape({
icon: PropTypes.element.isRequired, icon: PropTypes.any,
aria: PropTypes.string.isRequired, aria: PropTypes.string.isRequired,
action: PropTypes.func.isRequired, action: PropTypes.func.isRequired,
inverted: PropTypes.bool inverted: PropTypes.bool

View file

@ -183,7 +183,6 @@ const MobileIDEView = (props) => {
const { consoleIsExpanded } = ide; const { consoleIsExpanded } = ide;
const { name: filename } = selectedFile; const { name: filename } = selectedFile;
// Force state reset // Force state reset
useEffect(clearPersistedState, []); useEffect(clearPersistedState, []);
useEffect(() => { useEffect(() => {
@ -338,6 +337,7 @@ function mapStateToProps(state) {
state.files.find(file => file.name === 'sketch.js') || state.files.find(file => file.name === 'sketch.js') ||
state.files.find(file => file.name !== 'root'), state.files.find(file => file.name !== 'root'),
ide: state.ide, ide: state.ide,
files: state.files,
unsavedChanges: state.ide.unsavedChanges, unsavedChanges: state.ide.unsavedChanges,
preferences: state.preferences, preferences: state.preferences,
user: state.user, user: state.user,