diff --git a/src/components/tasks/mixins/createTask.js b/src/components/tasks/mixins/createTask.js index 283a64d7..1ac552ba 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) }