Przystosowanie kodu pod uaktualniony JSON z danymi

This commit is contained in:
2021-11-02 17:17:00 +01:00
parent 46002149cd
commit b1885f6882
3 changed files with 5 additions and 7 deletions
File diff suppressed because one or more lines are too long
-1
View File
@@ -41,7 +41,6 @@ export default interface Station {
scheduledTrains: ScheduledTrain[];
}[];
stops: string[] | null;
online: boolean;
statusTimestamp: number;
+4 -5
View File
@@ -264,12 +264,11 @@ export const store = createStore<State>({
noCatenary: station[13] as number
}
},
checkpoints: station[14] ? (station[14] as string[]).map(sub => ({ checkpointName: sub, scheduledTrains: [] })) : [],
stops: station[15] as string[],
checkpoints: station[14] ? (station[14] as string).split(";").map(sub => ({ checkpointName: sub, scheduledTrains: [] })) : [],
default: station[16] as boolean,
nonPublic: station[17] as boolean,
unavailable: station[18] as boolean,
default: station[15] as boolean,
nonPublic: station[16] as boolean,
unavailable: station[17] as boolean,
stationHash: "",
maxUsers: 0,