Skip to content

Commit

Permalink
fix(webui): filter panels would display invalid data
Browse files Browse the repository at this point in the history
  • Loading branch information
gotson committed Jan 28, 2025
1 parent a44135d commit 523151a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions komga-webui/src/components/FilterPanels.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 523151a

Please sign in to comment.