Skip to content

Commit

Permalink
Merge pull request #4962 from IgniteUI/gedinakova/fix-4947-master
Browse files Browse the repository at this point in the history
Added member path to CharSeparatedValueData constructor #4947
  • Loading branch information
kdinev committed Jun 19, 2019
2 parents 340fb80 + 23c7598 commit d9523d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export class CharSeparatedValueData {
private _delimiterLength = 1;
private _isSpecialData = false;

constructor(private _data: any[], valueDelimiter: string, private _isTreeGridData = false) {
constructor(private _data: any[], valueDelimiter: string) {
this.setDelimiter(valueDelimiter);
}

Expand All @@ -21,8 +21,6 @@ export class CharSeparatedValueData {
return '';
}

this._data = this._data.map((item) => item.rowData);

const keys = ExportUtilities.getKeysFromData(this._data);

if (keys.length === 0) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export class IgxCsvExporterService extends IgxBaseExporter {
public onExportEnded = new EventEmitter<ICsvExportEndedEventArgs>();

protected exportDataImplementation(data: any[], options: IgxCsvExporterOptions) {
data = data.map((item) => item.rowData);
const csvData = new CharSeparatedValueData(data, options.valueDelimiter);
this._stringData = csvData.prepareData();

Expand Down

0 comments on commit d9523d1

Please sign in to comment.