Skip to content

Commit

Permalink
Fixed #4362
Browse files Browse the repository at this point in the history
  • Loading branch information
Çağatay Çivici committed Nov 6, 2017
1 parent 9814130 commit 3fa495d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/components/datatable/datatable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2533,7 +2533,8 @@ export class DataTable implements AfterViewChecked,AfterViewInit,AfterContentIni
for(let i = 0; i < this.columns.length; i++) {
let column = this.columns[i];
if(column.exportable && column.field) {
csv += '"' + this.resolveFieldData(record, column.field) + '"';
let cellData = this.resolveFieldData(record, column.field)||'';
csv += '"' + cellData + '"';

if(i < (this.columns.length - 1)) {
csv += this.csvSeparator;
Expand Down

0 comments on commit 3fa495d

Please sign in to comment.