fix: added hiding project filter propositions for hidden sceneries

This commit is contained in:
2025-11-27 21:10:34 +01:00
parent aea26fa538
commit 01ea259381
2 changed files with 3 additions and 2 deletions
@@ -289,8 +289,8 @@ export default defineComponent({
projectsOptions() { projectsOptions() {
return this.store.stationList return this.store.stationList
.reduce((acc, station) => { .reduce((acc, station) => {
if (!station.generalInfo || !station.generalInfo.project) return acc; if (!station.generalInfo || !station.generalInfo.project || station.generalInfo.hidden) return acc;
if (!acc.includes(station.generalInfo.project)) acc.push(station.generalInfo.project); if (!acc.includes(station.generalInfo.project.trim())) acc.push(station.generalInfo.project.trim());
return acc; return acc;
}, [] as string[]) }, [] as string[])
+1
View File
@@ -118,6 +118,7 @@ export interface StationGeneralInfo {
availability: Availability; availability: Availability;
routes: StationRoutes; routes: StationRoutes;
checkpoints: string[]; checkpoints: string[];
hidden: boolean;
} }
export interface StationRoutes { export interface StationRoutes {