diff --git a/src/components/StationsView/StationFilterCard.vue b/src/components/StationsView/StationFilterCard.vue index 2509f18..d47770b 100644 --- a/src/components/StationsView/StationFilterCard.vue +++ b/src/components/StationsView/StationFilterCard.vue @@ -289,8 +289,8 @@ export default defineComponent({ projectsOptions() { return this.store.stationList .reduce((acc, station) => { - if (!station.generalInfo || !station.generalInfo.project) return acc; - if (!acc.includes(station.generalInfo.project)) acc.push(station.generalInfo.project); + if (!station.generalInfo || !station.generalInfo.project || station.generalInfo.hidden) return acc; + if (!acc.includes(station.generalInfo.project.trim())) acc.push(station.generalInfo.project.trim()); return acc; }, [] as string[]) diff --git a/src/typings/common.ts b/src/typings/common.ts index 26b4030..ec09da1 100644 --- a/src/typings/common.ts +++ b/src/typings/common.ts @@ -118,6 +118,7 @@ export interface StationGeneralInfo { availability: Availability; routes: StationRoutes; checkpoints: string[]; + hidden: boolean; } export interface StationRoutes {