From f0e9ef31aeaaf356fb272b0edac1a1caa781ce34 Mon Sep 17 00:00:00 2001 From: Johannes Millan Date: Tue, 8 Oct 2019 18:02:50 +0200 Subject: [PATCH] fix: worklog options extend error --- .../worklog/worklog-export/worklog-export.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/features/worklog/worklog-export/worklog-export.component.ts b/src/app/features/worklog/worklog-export/worklog-export.component.ts index 78601ab3cbe..5c415feb174 100644 --- a/src/app/features/worklog/worklog-export/worklog-export.component.ts +++ b/src/app/features/worklog/worklog-export/worklog-export.component.ts @@ -54,7 +54,7 @@ export class WorklogExportComponent implements OnInit, OnDestroy { isShowAsText = false; headlineCols: string[] = []; formattedRows: (string | number)[][]; - options: WorklogExportSettingsCopy = WORKLOG_EXPORT_DEFAULTS; + options: WorklogExportSettingsCopy = {...WORKLOG_EXPORT_DEFAULTS}; txt: string; fileName = 'tasks.csv'; roundTimeOptions = [ @@ -117,7 +117,7 @@ export class WorklogExportComponent implements OnInit, OnDestroy { )] }; } else { - this.options = WORKLOG_EXPORT_DEFAULTS; + this.options = {...WORKLOG_EXPORT_DEFAULTS}; } const tasks: WorklogTask[] = this._worklogService.getTaskListForRange(this.rangeStart, this.rangeEnd, true);