From 43be04826d08c22bdbebedf10e2441b92c6a6d75 Mon Sep 17 00:00:00 2001 From: Spythere Date: Mon, 15 Dec 2025 20:45:23 +0100 Subject: [PATCH] chore(filters): removed authors propositions for hidden sceneries --- src/components/StationsView/StationFilterCard.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/StationsView/StationFilterCard.vue b/src/components/StationsView/StationFilterCard.vue index 788ba6f..4b47f19 100644 --- a/src/components/StationsView/StationFilterCard.vue +++ b/src/components/StationsView/StationFilterCard.vue @@ -35,6 +35,7 @@ id="scenery-search" list="sceneries" :placeholder="$t('filters.sceneries-placeholder')" + @change="handleSceneriesInput" @focus="preventKeyDown = true" @blur="preventKeyDown = false" /> @@ -258,6 +259,8 @@ export default defineComponent({ authorsOptions() { return this.store.stationList .reduce((acc, station) => { + if (station.generalInfo?.hidden === true) return acc; + station.generalInfo?.authors?.forEach((author) => { if (author.trim() != '' && !acc.includes(author.toLocaleLowerCase())) acc.push(author.toLocaleLowerCase());