1
0

fix(home): explicitly use filter for tasks on home page when one is set

Resolves https://github.com/go-vikunja/vikunja/issues/289
Resolves https://community.vikunja.io/t/various-sorting-filtering-issues/2781/5

(cherry picked from commit 97e030a1fc032c73ca6144139a488c18979fb310)
This commit is contained in:
kolaente
2024-09-12 15:51:04 +02:00
parent c9f47797cf
commit f1451abebe
3 changed files with 16 additions and 5 deletions

View File

@ -66,7 +66,7 @@ export const useProjectStore = defineStore('project', () => {
return search(query)
?.filter(value => value > 0)
.map(id => projects.value[id])
.filter(project => project.isArchived === includeArchived)
.filter(project => project?.isArchived === includeArchived)
|| []
}
})
@ -76,7 +76,7 @@ export const useProjectStore = defineStore('project', () => {
return search(query)
?.filter(value => getSavedFilterIdFromProjectId(value) > 0)
.map(id => projects.value[id])
.filter(project => project.isArchived === includeArchived)
.filter(project => project?.isArchived === includeArchived)
|| []
}
})