From: Jérôme Benoit Date: Fri, 23 Oct 2020 22:25:16 +0000 (+0200) Subject: Fix max number of connectors calculation. X-Git-Tag: v1.0.1-0~244 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=aa48157ab243fd7794081b44913c7f26b79d9682;p=e-mobility-charging-stations-simulator.git Fix max number of connectors calculation. Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/ChargingStation.js b/src/charging-station/ChargingStation.js index 304a4e7a..d85deccc 100644 --- a/src/charging-station/ChargingStation.js +++ b/src/charging-station/ChargingStation.js @@ -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; }