mirror of
https://github.com/ascribe/onion.git
synced 2024-06-30 13:41:57 +02: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