fix console error when loading a project by url
This commit is contained in:
parent
1ae87ab85c
commit
fedef1628d
1 changed files with 1 additions and 1 deletions
|
@ -215,7 +215,7 @@ FileNode.propTypes = {
|
||||||
|
|
||||||
function mapStateToProps(state, ownProps) {
|
function mapStateToProps(state, ownProps) {
|
||||||
// this is a hack, state is updated before 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) {
|
function mapDispatchToProps(dispatch) {
|
||||||
|
|
Loading…
Reference in a new issue