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() {
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[])
+1
View File
@@ -118,6 +118,7 @@ export interface StationGeneralInfo {
availability: Availability;
routes: StationRoutes;
checkpoints: string[];
hidden: boolean;
}
export interface StationRoutes {