mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 13:28:11 +00:00
hotfix: checkpoints filtering for unknown sceneries
This commit is contained in:
@@ -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[] = [];
|
||||
|
||||
Reference in New Issue
Block a user