Fix max number of connectors calculation.
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 23 Oct 2020 22:25:16 +0000 (00:25 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 23 Oct 2020 22:25:16 +0000 (00:25 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/ChargingStation.js

index 304a4e7abd6af4efd13bfd7fd9f28f9d906b4aca..d85decccd1223dfc270fab41bbd53906c4fb084b 100644 (file)
@@ -194,8 +194,7 @@ class ChargingStation {
     } else if (this._stationInfo.numberOfConnectors) {
       maxConnectors = this._stationInfo.numberOfConnectors;
     } else {
-      maxConnectors = Utils.convertToBoolean(this._stationInfo.useConnectorId0) ? Object.keys(this._stationInfo.Connectors).length - 1 :
-                                              Object.keys(this._stationInfo.Connectors).length;
+      maxConnectors = Object.keys(this._stationInfo.Connectors).length;
     }
     return maxConnectors;
   }