diff --git a/src/components/tasks/mixins/createTask.js b/src/components/tasks/mixins/createTask.js index 283a64d77..1ac552baa 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 (lId !== 0) { + if (listId == null && lId !== 0) { listId = lId } - if (typeof this.$route.params.listId !== 'undefined') { + if (listId == null && typeof this.$route.params.listId !== 'undefined') { listId = parseInt(this.$route.params.listId) }