X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=ui%2Fweb%2Fsrc%2Fmain.ts;h=5d34ae912e8ecb44f36c276b9542e6c0dc2c6bdc;hb=53a8f2aadb2fceace1a8884770680f7e70437f73;hp=8c16f4a7fefe0fadd3d157cea469e9e0d3ba5fba;hpb=916fe4560be0062eeb6979d88988584c286ccc50;p=e-mobility-charging-stations-simulator.git diff --git a/ui/web/src/main.ts b/ui/web/src/main.ts index 8c16f4a7..5d34ae91 100644 --- a/ui/web/src/main.ts +++ b/ui/web/src/main.ts @@ -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 = [] }