fix(ui): remove incorrect async on WS open callback
authorJérôme Benoit <jerome.benoit@sap.com>
Sat, 17 Feb 2024 17:41:12 +0000 (18:41 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Sat, 17 Feb 2024 17:41:12 +0000 (18:41 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
ui/web/src/main.ts

index 27405eb66fa969ace6e7bbd8db4b71a3c6393307..bce88243188951771f87f1b3bade16661a3411b6 100644 (file)
@@ -13,7 +13,7 @@ const initializeApp = (config: ConfigurationData) => {
     // TODO: Add code for UI notifications or other error handling logic
   }
   app.config.globalProperties.$uiClient = UIClient.getInstance(config)
-  app.config.globalProperties.$uiClient.registerWSonOpenListener(async () => {
+  app.config.globalProperties.$uiClient.registerWSonOpenListener(() => {
     app.config.globalProperties.$uiClient
       .listChargingStations()
       .then((response: ResponsePayload) => {