Skip to content

Commit

Permalink
fix #1410 for wrong boolean short circuit
Browse files Browse the repository at this point in the history
  • Loading branch information
AllenFang committed Jul 10, 2017
1 parent 3c8e174 commit 3f60275
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/BootstrapTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -1073,7 +1073,7 @@ class BootstrapTable extends Component {
csvFileName = csvFileName();
}

exportCSVUtil(result, keys, csvFileName, separator, noAutoBOM || true, excludeCSVHeader);
exportCSVUtil(result, keys, csvFileName, separator, noAutoBOM, excludeCSVHeader);
}

handleSearch = searchText => {
Expand Down
1 change: 1 addition & 0 deletions src/csv_export_util.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ function toString(data, keys, separator, excludeCSVHeader) {
const exportCSV = function(data, keys, filename, separator, noAutoBOM, excludeCSVHeader) {
const dataString = toString(data, keys, separator, excludeCSVHeader);
if (typeof window !== 'undefined') {
noAutoBOM = noAutoBOM === undefined ? true : noAutoBOM;
saveAs(new Blob([ dataString ],
{ type: 'text/plain;charset=utf-8' }),
filename, noAutoBOM);
Expand Down

0 comments on commit 3f60275

Please sign in to comment.