From f5c7b5be82b77c067bdd062d18e9f2904baa1290 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 e6cb6648..6a564059 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'],