refactor(ui): revert wrongly introduced code to handle multiples UI
[e-mobility-charging-stations-simulator.git] / ui / web / src / main.ts
index ddef6f364e4786ad7e14d4c13a0a20f75641f407..97f0167a740f8b5390eee6c1882f31933d287101 100644 (file)
@@ -14,10 +14,7 @@ const initializeApp = (config: ConfigurationData) => {
     console.info('Error info:', info)
     // TODO: add code for UI notifications or other error handling logic
   }
-  if (Array.isArray(config.uiServer)) {
-    throw new Error('Multiple UI server configurations is not yet supported')
-  }
-  app.config.globalProperties.$uiClient = UIClient.getInstance(0, config.uiServer)
+  app.config.globalProperties.$uiClient = UIClient.getInstance(config.uiServer)
   app.config.globalProperties.$uiClient.registerWSEventListener('open', () => {
     app.config.globalProperties.$uiClient
       .listChargingStations()