diff --git a/client/modules/IDE/components/FileNode.js b/client/modules/IDE/components/FileNode.js index a08f7bbe..7e83e7d2 100644 --- a/client/modules/IDE/components/FileNode.js +++ b/client/modules/IDE/components/FileNode.js @@ -215,7 +215,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' }; + return state.files.find((file) => file.id === ownProps.id) || { ...ownProps, name: 'test', fileType: 'file' }; } function mapDispatchToProps(dispatch) {