From 7e75fa25162ba36f1cdcafe888beab2586eae4dd Mon Sep 17 00:00:00 2001 From: Spythere Date: Sun, 19 May 2024 23:12:07 +0200 Subject: [PATCH] chore: checkpoints hotfix --- src/store/mainStore.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/store/mainStore.ts b/src/store/mainStore.ts index a4a9c33..5ad01a0 100644 --- a/src/store/mainStore.ts +++ b/src/store/mainStore.ts @@ -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) ?? [];