mirror of
https://github.com/gotson/komga.git
synced 2026-05-08 12:35:30 +02:00
fix(webui): filter panels would display invalid data
This commit is contained in:
parent
a44135d550
commit
523151ac7d
1 changed files with 2 additions and 2 deletions
|
|
@ -121,8 +121,8 @@ export default Vue.extend({
|
|||
// filtersActive, filtered to not show options that are in filtersOptions
|
||||
searchFiltersActive(key: string): FiltersActive[] {
|
||||
if (!(key in this.filtersActive)) return []
|
||||
const listedOptions = this.filtersOptions[key]?.values?.flatMap(x => [x.value, x.nValue])
|
||||
return this.filtersActive[key].filter((x: string) => !this.$_.includes(listedOptions, x))
|
||||
const listedOptions = this.filtersOptions[key]?.values?.flatMap(x => [x.value, x.nValue]).map(x => JSON.stringify(x))
|
||||
return this.filtersActive[key].filter((x: string) => !this.$_.includes(listedOptions, JSON.stringify(x)))
|
||||
},
|
||||
includes(array: any[], value: any): boolean {
|
||||
return this.$_.isObject(value) ? this.$_.some(array, value) : this.$_.includes(array, value)
|
||||
|
|
|
|||
Loading…
Reference in a new issue