From 69b73d016ae5ab54e46e2b6eb7cc8c07db89e998 Mon Sep 17 00:00:00 2001 From: catarak Date: Wed, 24 Aug 2016 15:31:10 -0400 Subject: [PATCH] add comment for hack --- client/modules/IDE/components/FileNode.js | 1 + 1 file changed, 1 insertion(+) diff --git a/client/modules/IDE/components/FileNode.js b/client/modules/IDE/components/FileNode.js index f6f0f4c4..60d5bd02 100644 --- a/client/modules/IDE/components/FileNode.js +++ b/client/modules/IDE/components/FileNode.js @@ -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' }; }