From 374c2a5b5bfff002bf2a687b3c0e357058672251 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sun, 3 Mar 2024 12:17:10 +0100 Subject: [PATCH] refactor(ui): trivial code cleanup MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- ui/web/src/views/ChargingStationsView.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 }) ) -- 2.34.1