chore: simplify done filter check

This commit is contained in:
kolaente 2021-11-02 20:06:54 +01:00
parent dc02c09f19
commit df1a76d529
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 7 deletions

View File

@ -458,13 +458,7 @@ export default {
return
}
let foundDone = false
this.params.filter_by.forEach((f, i) => {
if (f === 'done') {
foundDone = i
}
})
this.filters.done = foundDone === false
this.filter.done = this.params.filter_by.some((f) => f === 'done') === false
},
async prepareRelatedObjectFilter(kind, filterName = null, servicePrefix = null) {
if (filterName === null) {