add comment for hack

This commit is contained in:
catarak 2016-08-24 15:31:10 -04:00
parent b0ce13e6ba
commit 69b73d016a
1 changed files with 1 additions and 0 deletions

View File

@ -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' };
}