Skip to content

Commit

Permalink
fix: worklog options extend error
Browse files Browse the repository at this point in the history
  • Loading branch information
johannesjo committed Oct 8, 2019
1 parent a578dde commit f0e9ef3
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -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 = [
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit f0e9ef3

Please sign in to comment.