refactor(ui): trivial code cleanup
authorJérôme Benoit <jerome.benoit@sap.com>
Sun, 3 Mar 2024 11:17:10 +0000 (12:17 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Sun, 3 Mar 2024 11:17:10 +0000 (12:17 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
ui/web/src/views/ChargingStationsView.vue

index 6f589ccc6a8030136f4449ac5de1a2e64daaf78e..9db389a237ea6d49345ad747ad38fbcfba73d098 100644 (file)
@@ -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
     })
   )