Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
AllenFang committed Jul 21, 2016
1 parent 76f1413 commit c201793
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/BootstrapTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -658,6 +658,8 @@ class BootstrapTable extends Component {
const { onExportToCSV } = this.props.options;
if (onExportToCSV) {
result = onExportToCSV();
} else {
result = this.store.getDataIgnoringPagination();
}

const keys = [];
Expand All @@ -674,12 +676,6 @@ class BootstrapTable extends Component {
}
});

if (this.isRemoteDataSource()) {
exportCSV(result, keys, this.props.csvFileName);
return;
}

result = this.store.getDataIgnoringPagination();
exportCSV(result, keys, this.props.csvFileName);
}

Expand Down

0 comments on commit c201793

Please sign in to comment.