mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 13:28:11 +00:00
Fix routingu widoków i filtrowania scenerii
This commit is contained in:
@@ -246,8 +246,15 @@ export default class StationFilterManager {
|
||||
});
|
||||
}
|
||||
|
||||
getFilteredStationList(stationList: Station[]): Station[] {
|
||||
getFilteredStationList(stationList: Station[], region: string): Station[] {
|
||||
return stationList
|
||||
.map((station) => {
|
||||
if (station.onlineInfo && station.onlineInfo.region != region) {
|
||||
delete station.onlineInfo;
|
||||
}
|
||||
|
||||
return station;
|
||||
})
|
||||
.filter((station) => filterStations(station, this.filters))
|
||||
.sort((a, b) => sortStations(a, b, this.sorter));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user