Skip to content

Commit

Permalink
if value is 0 , it will print '0' not '-' (wenzhixin#3548)
Browse files Browse the repository at this point in the history
  • Loading branch information
riggzh authored and wenzhixin committed Jan 16, 2018
1 parent b381fc5 commit 503aaae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extensions/print/bootstrap-table-print.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
return column.printFormatter.apply(column, [value, row, i]);
}
else {
return value || "-";
return typeof value === 'undefined' ? "-" : value;
}
}

Expand Down

0 comments on commit 503aaae

Please sign in to comment.