diff --git a/src/store/mainStore.ts b/src/store/mainStore.ts index 84f77fa..a6e13c8 100644 --- a/src/store/mainStore.ts +++ b/src/store/mainStore.ts @@ -47,7 +47,8 @@ export const useMainStore = defineStore('store', { const sceneryNames = train.timetable?.sceneries?.map( (sceneryHash) => - this.activeSceneryList.find((st) => st.hash === sceneryHash)?.name ?? + apiStore.activeData?.activeSceneries?.find((st) => st.stationHash === sceneryHash) + ?.stationName ?? apiStore.sceneryData.find((sd) => sd.hash === sceneryHash)?.name ?? sceneryHash ) ?? [];