sortowanie po liczbie szlaków i ocenie dyżurnego

This commit is contained in:
2024-03-03 21:44:39 +01:00
parent 9f5d882119
commit 40bbdbe4fa
4 changed files with 37 additions and 18 deletions
+2
View File
@@ -230,6 +230,8 @@ export const useMainStore = defineStore('store', {
return apiStore.sceneryData.map((scenery) => {
const routes = scenery.routesInfo.reduce(
(acc, route) => {
if (route.hidden) return acc;
const tracksKey = route.routeTracks == 2 ? 'double' : 'single';
const isElectric = route.isElectric;
const routesKey: keyof StationRoutes = `${tracksKey}${