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
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

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