From 7e29dde7170b51b90d280ef3e02fae73e267c607 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 17 Oct 2021 12:59:25 +0200 Subject: [PATCH] fix: new tasks were always created in the default list --- src/components/tasks/mixins/createTask.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/tasks/mixins/createTask.js b/src/components/tasks/mixins/createTask.js index 1ac552ba..3395fbd9 100644 --- a/src/components/tasks/mixins/createTask.js +++ b/src/components/tasks/mixins/createTask.js @@ -40,10 +40,10 @@ export default { const list = this.$store.getters['lists/findListByExactname'](parsedTask.list) listId = list === null ? null : list.id } - if (listId == null && lId !== 0) { + if (listId === null && lId !== 0) { listId = lId } - if (listId == null && typeof this.$route.params.listId !== 'undefined') { + if (typeof this.$route.params.listId !== 'undefined') { listId = parseInt(this.$route.params.listId) }