From: Jérôme Benoit Date: Sat, 17 Feb 2024 17:41:12 +0000 (+0100) Subject: fix(ui): remove incorrect async on WS open callback X-Git-Tag: v1.2.37~24 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=0e60d4cc18d6b2ea9a8d69906a078109bcc94cdc;hp=57c0ba059e47d46ad545d9783920b53ee56c7184;p=e-mobility-charging-stations-simulator.git fix(ui): remove incorrect async on WS open callback Signed-off-by: Jérôme Benoit --- diff --git a/ui/web/src/main.ts b/ui/web/src/main.ts index 27405eb6..bce88243 100644 --- a/ui/web/src/main.ts +++ b/ui/web/src/main.ts @@ -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) => {