mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 21:38:13 +00:00
chore: checkpoints hotfix
This commit is contained in:
@@ -239,7 +239,8 @@ export const useMainStore = defineStore('mainStore', {
|
|||||||
const station = this.stationList.find((s) => s.name === scenery.name);
|
const station = this.stationList.find((s) => s.name === scenery.name);
|
||||||
|
|
||||||
const checkpoints = [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 =
|
scenery.stationTrains =
|
||||||
sceneriesTrains.get(scenery.name)?.filter((sc) => sc.region == this.region.id) ?? [];
|
sceneriesTrains.get(scenery.name)?.filter((sc) => sc.region == this.region.id) ?? [];
|
||||||
|
|||||||
Reference in New Issue
Block a user