Skip to content

Commit c201793

Browse files
committed
1 parent 76f1413 commit c201793

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/BootstrapTable.js

+2-6
Original file line numberDiff line numberDiff line change
@@ -658,6 +658,8 @@ class BootstrapTable extends Component {
658658
const { onExportToCSV } = this.props.options;
659659
if (onExportToCSV) {
660660
result = onExportToCSV();
661+
} else {
662+
result = this.store.getDataIgnoringPagination();
661663
}
662664

663665
const keys = [];
@@ -674,12 +676,6 @@ class BootstrapTable extends Component {
674676
}
675677
});
676678

677-
if (this.isRemoteDataSource()) {
678-
exportCSV(result, keys, this.props.csvFileName);
679-
return;
680-
}
681-
682-
result = this.store.getDataIgnoringPagination();
683679
exportCSV(result, keys, this.props.csvFileName);
684680
}
685681

0 commit comments

Comments
 (0)