fix: add null check for parsedTask listId (#31)
continuous-integration/drone/push Build is passing Details

Co-authored-by: AJ Nieminen <ajnieminen@kapsi.fi>
This commit is contained in:
IDDQD69 2021-10-16 13:09:10 +03:00 committed by GitHub
parent accd3ef392
commit 26568fe5c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 (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)
}