mirror of
https://github.com/ascribe/onion.git
synced 2024-12-23 09:50:31 +01:00
fix bug
This commit is contained in:
parent
116cb9c2fc
commit
284919f3db
@ -60,7 +60,7 @@ let PieceList = React.createClass({
|
|||||||
PieceListStore.listen(this.onChange);
|
PieceListStore.listen(this.onChange);
|
||||||
EditionListStore.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,
|
PieceListActions.fetchPieceList(page, this.state.pageSize, this.state.search,
|
||||||
this.state.orderBy, this.state.orderAsc, this.state.filterBy)
|
this.state.orderBy, this.state.orderAsc, this.state.filterBy)
|
||||||
.then(() => PieceListActions.fetchPieceRequestActions());
|
.then(() => PieceListActions.fetchPieceRequestActions());
|
||||||
|
Loading…
Reference in New Issue
Block a user