Skip to content

Commit

Permalink
fix #1737
Browse files Browse the repository at this point in the history
  • Loading branch information
AllenFang committed Nov 8, 2017
1 parent 6872742 commit 509e31a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/BootstrapTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,10 @@ class BootstrapTable extends Component {
if (this.store.filterObj) this.handleFilterData(this.store.filterObj);
newState.currPage = Util.getFirstPage(nextProps.options.pageStartIndex);
} else {
data = this.store.sort().get();
newState.data = data;
if (!this.allowRemote(Const.REMOTE_SORT)) {
data = this.store.sort().get();
newState.data = data;

This comment has been minimized.

Copy link
@meet-asite

meet-asite Nov 10, 2017

I think this line should be outside of the if block.

}
}
this.setState(() => newState);
} else {
Expand Down

0 comments on commit 509e31a

Please sign in to comment.