Variable renaming.
authorJérôme Benoit <jerome.benoit@sap.com>
Mon, 19 Oct 2020 10:54:36 +0000 (12:54 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Mon, 19 Oct 2020 10:54:36 +0000 (12:54 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/ChargingStation.js

index 30330463a774397bfc16fdd1dda6d360659b147a..be4f161380c6fad845520e4cb2b5139fe79fd621 100644 (file)
@@ -635,13 +635,13 @@ class ChargingStation {
         });
       }
     } else {
-      for (const configuration of commandPayload.key) {
-        const keyFound = this._getConfigurationKey(configuration);
+      for (const configurationKey of commandPayload.key) {
+        const keyFound = this._getConfigurationKey(configurationKey);
         if (keyFound) {
           if (Utils.isUndefined(keyFound.visible)) {
             keyFound.visible = true;
           } else {
-            keyFound.visible = Utils.convertToBoolean(configuration.visible);
+            keyFound.visible = Utils.convertToBoolean(configurationKey.visible);
           }
           if (!keyFound.visible) {
             continue;
@@ -652,7 +652,7 @@ class ChargingStation {
             value: keyFound.value,
           });
         } else {
-          unknownKey.push(configuration);
+          unknownKey.push(configurationKey);
         }
       }
     }