From 56a25734d7557663e2ba43ba41f4922f0b10ed8b Mon Sep 17 00:00:00 2001 From: kolaente Date: Tue, 2 Aug 2022 13:50:02 +0200 Subject: [PATCH] chore: define types --- src/components/tasks/gantt-chart.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/tasks/gantt-chart.vue b/src/components/tasks/gantt-chart.vue index e6cb66480..6a5640597 100644 --- a/src/components/tasks/gantt-chart.vue +++ b/src/components/tasks/gantt-chart.vue @@ -108,7 +108,7 @@ const ganttChartWidth = computed(() => { const canWrite = computed(() => store.state.currentList.maxRight > Rights.READ) -const tasks = ref([]) +const tasks = ref>([]) const ganttBars = ref([]) const defaultStartDate = format(new Date(), DATE_FORMAT) @@ -142,7 +142,7 @@ function mapGanttBars() { } async function loadTasks() { - tasks.value = new Map() + tasks.value = new Map() const params = { sort_by: ['start_date', 'done', 'id'],