diff --git a/src/components/tasks/gantt-component.vue b/src/components/tasks/gantt-component.vue index b3737851..1ebdf180 100644 --- a/src/components/tasks/gantt-component.vue +++ b/src/components/tasks/gantt-component.vue @@ -201,10 +201,10 @@ export default { default: false, }, dateFrom: { - default: new Date(new Date().setDate(new Date().getDate() - 15)), + default: () => new Date(new Date().setDate(new Date().getDate() - 15)), }, dateTo: { - default: new Date(new Date().setDate(new Date().getDate() + 30)), + default: () => new Date(new Date().setDate(new Date().getDate() + 30)), }, // The width of a day in pixels, used to calculate all sorts of things. dayWidth: {