fix(task): cancel loading state when creating a new task does not work

This commit is contained in:
kolaente 2022-09-30 21:25:05 +02:00
parent e999b38d3b
commit 5585966584
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -383,12 +383,12 @@ export const useTaskStore = defineStore('task', {
task: createdTask, task: createdTask,
parsedLabels: parsedTask.labels, parsedLabels: parsedTask.labels,
}) })
return result
} catch (e) { } catch (e) {
throw e throw e
} finally { } finally {
cancel() cancel()
} }
return result
}, },
}, },
}) })