From ea52c54e3a38ef37e0670878c5bf3d31e953e26f Mon Sep 17 00:00:00 2001 From: Brett Sun Date: Mon, 30 Nov 2015 11:27:15 +0100 Subject: [PATCH] Fix check for determining if a piece's edition list is open --- js/components/piece_list.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/components/piece_list.js b/js/components/piece_list.js index 3d4309f8..4a269aa8 100644 --- a/js/components/piece_list.js +++ b/js/components/piece_list.js @@ -130,7 +130,9 @@ let PieceList = React.createClass({ this.state.pieceList .forEach((piece) => { // but only if they're actually open - if(this.state.isEditionListOpenForPieceId[piece.id].show) { + const isEditionListOpenForPiece = this.state.isEditionListOpenForPieceId[piece.id]; + + if (isEditionListOpenForPiece && isEditionListOpenForPiece.show) { EditionListActions.refreshEditionList({ pieceId: piece.id, filterBy