From 091599bdf074b2b3ccc4873efdd8bfef5009bd9e Mon Sep 17 00:00:00 2001 From: Dominik Pschenitschni Date: Thu, 21 Jul 2022 19:22:36 +0200 Subject: [PATCH] fix: createNewTask typing --- src/store/modules/tasks.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/store/modules/tasks.ts b/src/store/modules/tasks.ts index bb459b790..8289d848b 100644 --- a/src/store/modules/tasks.ts +++ b/src/store/modules/tasks.ts @@ -320,7 +320,7 @@ const tasksStore : Module= { return foundListId }, - async createNewTask({dispatch, commit}, { + async createNewTask(ctx, { title, bucketId, listId, @@ -328,10 +328,10 @@ const tasksStore : Module= { } : Partial, ) { - const cancel = setLoading({commit}, 'tasks') + const cancel = setLoading(ctx, 'tasks') const parsedTask = parseTaskText(title, getQuickAddMagicMode()) - const foundListId = await dispatch('findListId', { + const foundListId = await ctx.dispatch('findListId', { list: parsedTask.list, listId: listId || 0, })