Skip to content

Commit 989de41

Browse files
committed
fix(CSV): Always print column headers if available.
1 parent 916bad1 commit 989de41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/igniteui-angular/grids/core/src/services/csv/char-separated-value-data.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export class CharSeparatedValueData {
5555
/* When column groups are present, always use the field as it indicates the group the column belongs to.
5656
* Otherwise, in PivotGrid scenarios we can end up with many duplicated column names without a hint what they represent.
5757
*/
58-
columns.map(c => c.columnGroupParent ? c.field : c.header ?? c.field) :
58+
columns.map(c => c.header ?? c.field) :
5959
keys;
6060

6161
this._headerRecord = this.processHeaderRecord(headers, this._data.length);

0 commit comments

Comments
 (0)