Skip to content

Commit

Permalink
fix(exports): deprecated exportOptions should still be working
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding committed Dec 7, 2020
1 parent be70e92 commit 19145b2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/text-export/src/textExport.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ export class TextExportService implements BaseTextExportService {

return new Promise(resolve => {
this._pubSubService.publish(`onBeforeExportToTextFile`, true);
this._exportOptions = deepCopy({ ...this._gridOptions.textExportOptions, ...options });
const textExportOptions = this._gridOptions.exportOptions || this._gridOptions.textExportOptions;
this._exportOptions = deepCopy({ ...textExportOptions, ...options });
this._delimiter = this._exportOptions.delimiterOverride || this._exportOptions.delimiter || '';
this._fileFormat = this._exportOptions.format || FileType.csv;

Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const SalesforceGlobalGridOptions = {
enableAutoTooltip: true,
enableDeepCopyDatasetOnPageLoad: true,
enableTextExport: true,
exportOptions: {
textExportOptions: {
exportWithFormatter: true,
sanitizeDataExport: true,
},
Expand Down

0 comments on commit 19145b2

Please sign in to comment.