From cd10bc9d7ae06b0f62a8101eacdf07ce5c710eb9 Mon Sep 17 00:00:00 2001 From: Dominik Pschenitschni Date: Wed, 22 Dec 2021 19:49:06 +0100 Subject: [PATCH] fix(gantt): use function to create default date --- src/components/tasks/gantt-component.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: {