fix: add null check for parsedTask listId (#31)
Co-authored-by: AJ Nieminen <ajnieminen@kapsi.fi>
This commit is contained in:
parent
accd3ef392
commit
26568fe5c6
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue