From: Jérôme Benoit Date: Tue, 13 Feb 2024 19:02:15 +0000 (+0100) Subject: fix: ensure number of connectors is deleted from existing configurations X-Git-Tag: v1.2.37~65 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=c84cfd0894f437c0338bf76eca57f09d9e603102;p=e-mobility-charging-stations-simulator.git fix: ensure number of connectors is deleted from existing configurations Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/ChargingStation.ts b/src/charging-station/ChargingStation.ts index 72bfd0ae..e064d4cd 100644 --- a/src/charging-station/ChargingStation.ts +++ b/src/charging-station/ChargingStation.ts @@ -1223,6 +1223,7 @@ export class ChargingStation extends EventEmitter { stationInfo = this.getConfigurationFromFile()?.stationInfo if (stationInfo != null) { delete stationInfo.infoHash + delete (stationInfo as ChargingStationTemplate).numberOfConnectors // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition if (stationInfo.templateIndex == null) { stationInfo.templateIndex = this.index