From 284919f3dbaa1542c7bb3a6d9252cf36c0d102d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Daubensch=C3=BCtz?= Date: Fri, 21 Aug 2015 16:14:15 +0200 Subject: [PATCH] fix bug --- js/components/piece_list.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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());