Variable renaming.
[e-mobility-charging-stations-simulator.git] / 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);
         }
       }
     }