diff --git a/js/components/piece_list.js b/js/components/piece_list.js index 14554ea0..94d2ef96 100644 --- a/js/components/piece_list.js +++ b/js/components/piece_list.js @@ -60,7 +60,7 @@ let PieceList = React.createClass({ PieceListStore.listen(this.onChange); EditionListStore.listen(this.onChange); - if (this.state.pieceList.length === 0){ + if (this.state.pieceList.length === 0 || this.state.page !== page){ PieceListActions.fetchPieceList(page, this.state.pageSize, this.state.search, this.state.orderBy, this.state.orderAsc, this.state.filterBy) .then(() => PieceListActions.fetchPieceRequestActions());