chore(filters): removed authors propositions for hidden sceneries

This commit is contained in:
2025-12-15 20:45:23 +01:00
parent d9986da354
commit 43be04826d
@@ -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());