From d7048d589e55ef9e0a6d0340a9fd1a2bdad7a3bb Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 23 Oct 2022 13:58:40 +0200 Subject: [PATCH] fix(task): stop loading when no list was specified while creating a task --- src/stores/tasks.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/stores/tasks.ts b/src/stores/tasks.ts index 3ed7d52ea2..e28252f240 100644 --- a/src/stores/tasks.ts +++ b/src/stores/tasks.ts @@ -385,6 +385,7 @@ export const useTaskStore = defineStore('task', { }) if(foundListId === null || foundListId === 0) { + cancel() throw new Error('NO_LIST') }