fix: new tasks were always created in the default list

This commit is contained in:
kolaente 2021-10-17 12:59:25 +02:00
parent a85e27b497
commit 7e29dde717
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 2 additions and 2 deletions

View File

@ -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)
}