mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 05:18:11 +00:00
sortowanie po liczbie szlaków i ocenie dyżurnego
This commit is contained in:
@@ -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}${
|
||||
|
||||
Reference in New Issue
Block a user