fix console error when loading a project by url

This commit is contained in:
catarak 2016-09-03 20:19:07 -04:00
parent 1ae87ab85c
commit fedef1628d

View file

@ -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) {