add comment for hack

This commit is contained in:
catarak 2016-08-24 15:31:10 -04:00
parent b0ce13e6ba
commit 69b73d016a

View file

@ -151,6 +151,7 @@ FileNode.propTypes = {
}; };
function mapStateToProps(state, ownProps) { 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' };
} }