From f53993c7174231a4b6a342111615a1344ffc8f6a Mon Sep 17 00:00:00 2001 From: Spythere Date: Sun, 31 Mar 2024 21:55:33 +0200 Subject: [PATCH] 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 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 ) ?? [];