From 558596658469d632572cf6718b61bd8439fc0cf7 Mon Sep 17 00:00:00 2001 From: kolaente Date: Fri, 30 Sep 2022 21:25:05 +0200 Subject: [PATCH] fix(task): cancel loading state when creating a new task does not work --- src/stores/tasks.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stores/tasks.ts b/src/stores/tasks.ts index 958b7578..9485403f 100644 --- a/src/stores/tasks.ts +++ b/src/stores/tasks.ts @@ -383,12 +383,12 @@ export const useTaskStore = defineStore('task', { task: createdTask, parsedLabels: parsedTask.labels, }) + return result } catch (e) { throw e } finally { cancel() } - return result }, }, })