chore: checkpoints hotfix

This commit is contained in:
2024-05-19 23:12:07 +02:00
parent 3ed2c09184
commit 7e75fa2516
+2 -1
View File
@@ -239,7 +239,8 @@ export const useMainStore = defineStore('mainStore', {
const station = this.stationList.find((s) => s.name === scenery.name);
const checkpoints = [scenery.name];
if (station?.generalInfo?.checkpoints) checkpoints.push(...station.generalInfo.checkpoints);
if (station?.generalInfo?.checkpoints)
checkpoints.push(...station.generalInfo.checkpoints.filter((cp) => cp != scenery.name));
scenery.stationTrains =
sceneriesTrains.get(scenery.name)?.filter((sc) => sc.region == this.region.id) ?? [];