fix(ui): handle undefined charging stations data array
authorJérôme Benoit <jerome.benoit@sap.com>
Sat, 17 Feb 2024 18:27:41 +0000 (19:27 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Sat, 17 Feb 2024 18:27:41 +0000 (19:27 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
ui/web/src/views/ChargingStationsView.vue

index db374401ff7d51164501da254c839c4b47fbbfe8..bd9b239c0463b6073521dffae8427ce25f073111 100644 (file)
@@ -16,7 +16,7 @@
     </Container>
     <CSTable
       :charging-stations="
-        getCurrentInstance()?.appContext.config.globalProperties.$chargingStations
+        getCurrentInstance()?.appContext.config.globalProperties.$chargingStations ?? []
       "
       :id-tag="state.idTag"
     />