From 1024e44cc0e80b06973e911d74ab1eebcf3efc0b Mon Sep 17 00:00:00 2001 From: Spythere Date: Tue, 16 Sep 2025 20:45:27 +0200 Subject: [PATCH] hotfix: checkpoints filtering for unknown sceneries --- src/store/mainStore.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/store/mainStore.ts b/src/store/mainStore.ts index fd206d6..5a7965c 100644 --- a/src/store/mainStore.ts +++ b/src/store/mainStore.ts @@ -333,8 +333,12 @@ export const useMainStore = defineStore('mainStore', { const missingCheckpointsToAdd = unknownSceneryCheckpoints.get(scenery.name); if (missingCheckpointsToAdd) { - checkpoints.push(...missingCheckpointsToAdd); - scenery.missingCheckpoints.push(...missingCheckpointsToAdd); + [...missingCheckpointsToAdd].forEach((cp) => { + if (cp.toLowerCase() == scenery.name.toLowerCase()) return; + + checkpoints.push(cp); + scenery.missingCheckpoints.push(cp); + }); } const uniqueTrainIds: string[] = [];