From: Jérôme Benoit Date: Sun, 3 Mar 2024 11:17:10 +0000 (+0100) Subject: refactor(ui): trivial code cleanup X-Git-Tag: v1.3.0~68 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=374c2a5b5bfff002bf2a687b3c0e357058672251;p=e-mobility-charging-stations-simulator.git refactor(ui): trivial code cleanup Signed-off-by: Jérôme Benoit --- diff --git a/ui/web/src/views/ChargingStationsView.vue b/ui/web/src/views/ChargingStationsView.vue index 6f589ccc..9db389a2 100644 --- a/ui/web/src/views/ChargingStationsView.vue +++ b/ui/web/src/views/ChargingStationsView.vue @@ -220,11 +220,11 @@ onMounted(() => { initializeWSEventListeners() }) -const uiServerConfigurations: { configuration: UIServerConfigurationSection; index: number }[] = +const uiServerConfigurations: { index: number; configuration: UIServerConfigurationSection }[] = app?.appContext.config.globalProperties.$configuration.uiServer.map( (configuration: UIServerConfigurationSection, index: number) => ({ - configuration, - index + index, + configuration }) )