diff --git a/client/modules/IDE/components/FileNode.js b/client/modules/IDE/components/FileNode.js index f6f0f4c4..60d5bd02 100644 --- a/client/modules/IDE/components/FileNode.js +++ b/client/modules/IDE/components/FileNode.js @@ -151,6 +151,7 @@ FileNode.propTypes = { }; function mapStateToProps(state, ownProps) { + // this is a hack, state is updated before ownProps return state.files.find((file) => file.id === ownProps.id) || { ...ownProps, name: 'test' }; }