docs(ui): update Web UI screenshot
[e-mobility-charging-stations-simulator.git] / ui / web / src / main.ts
index 8c16f4a7fefe0fadd3d157cea469e9e0d3ba5fba..5d34ae912e8ecb44f36c276b9542e6c0dc2c6bdc 100644 (file)
@@ -21,6 +21,9 @@ const initializeApp = (app: AppType, config: ConfigurationData) => {
   if (app.config.globalProperties.$configuration == null) {
     app.config.globalProperties.$configuration = config
   }
+  if (!Array.isArray(app.config.globalProperties.$templates)) {
+    app.config.globalProperties.$templates = []
+  }
   if (!Array.isArray(app.config.globalProperties.$chargingStations)) {
     app.config.globalProperties.$chargingStations = []
   }