mirror of
https://github.com/ascribe/onion.git
synced 2025-01-03 10:25:08 +01:00
Cherry pick from previous PR
This commit is contained in:
parent
9c8ba1bb1f
commit
ffe88eb3bf
@ -190,13 +190,14 @@ let PieceList = React.createClass({
|
|||||||
this.state.pieceList
|
this.state.pieceList
|
||||||
.forEach((piece) => {
|
.forEach((piece) => {
|
||||||
// but only if they're actually open
|
// 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({
|
EditionListActions.refreshEditionList({
|
||||||
pieceId: piece.id,
|
pieceId: piece.id,
|
||||||
filterBy
|
filterBy
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user