fix(filters): correctly return project from filter
Related https://kolaente.dev/vikunja/vikunja/issues/2194
This commit is contained in:
parent
161bb1b192
commit
c8b35d49ca
@ -111,12 +111,7 @@ function change() {
|
|||||||
labelTitle => labelStore.filterLabelsByQuery([], labelTitle)[0]?.id || null,
|
labelTitle => labelStore.filterLabelsByQuery([], labelTitle)[0]?.id || null,
|
||||||
projectTitle => {
|
projectTitle => {
|
||||||
const found = projectStore.findProjectByExactname(projectTitle)
|
const found = projectStore.findProjectByExactname(projectTitle)
|
||||||
|
return found?.id || null
|
||||||
if (found === null) {
|
|
||||||
return null
|
|
||||||
}
|
|
||||||
|
|
||||||
return found[0]?.id || null
|
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user