chore: define types

This commit is contained in:
kolaente 2022-08-02 13:50:02 +02:00
parent ed5d3be7cb
commit 56a25734d7
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 2 additions and 2 deletions

View File

@ -108,7 +108,7 @@ const ganttChartWidth = computed(() => {
const canWrite = computed(() => store.state.currentList.maxRight > Rights.READ)
const tasks = ref([])
const tasks = ref<Map<number, TaskModel>>([])
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<number, TaskModel>()
const params = {
sort_by: ['start_date', 'done', 'id'],