fix(gantt): use function to create default date

This commit is contained in:
Dominik Pschenitschni 2021-12-22 19:49:06 +01:00 committed by Gitea
parent f4545fbe2f
commit cd10bc9d7a

View file

@ -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: {