add comment for hack
This commit is contained in:
parent
b0ce13e6ba
commit
69b73d016a
1 changed files with 1 additions and 0 deletions
|
@ -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' };
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue