From 68c6d508a8e4eb7e67c4f174c0f3d305829c2eaf Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Tue, 5 Mar 2024 21:34:30 +0100 Subject: [PATCH] fix(ui): fix global properties init MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- ui/web/src/main.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/web/src/main.ts b/ui/web/src/main.ts index 8181374e..640adf9f 100644 --- a/ui/web/src/main.ts +++ b/ui/web/src/main.ts @@ -21,10 +21,10 @@ const initializeApp = (app: AppType, config: ConfigurationData) => { if (app.config.globalProperties.$configuration == null) { app.config.globalProperties.$configuration = ref(config) } - if (!Array.isArray(app.config.globalProperties.$templates.value)) { + if (!Array.isArray(app.config.globalProperties.$templates?.value)) { app.config.globalProperties.$templates = ref([]) } - if (!Array.isArray(app.config.globalProperties.$chargingStations.value)) { + if (!Array.isArray(app.config.globalProperties.$chargingStations?.value)) { app.config.globalProperties.$chargingStations = ref([]) } if ( -- 2.34.1