From: Jérôme Benoit Date: Sat, 29 Apr 2023 09:27:31 +0000 (+0200) Subject: fix: fix condition at saving connectors/evses X-Git-Tag: v1.2.12~41 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=7446de3b161acfb6f47352b55a4607b15cf66436;p=e-mobility-charging-stations-simulator.git fix: fix condition at saving connectors/evses Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/ChargingStation.ts b/src/charging-station/ChargingStation.ts index f1109aa1..c66a9130 100644 --- a/src/charging-station/ChargingStation.ts +++ b/src/charging-station/ChargingStation.ts @@ -1482,15 +1482,11 @@ export class ChargingStation { } private saveConnectorsStatus() { - if (this.getOcppPersistentConfiguration()) { - this.saveConfiguration(); - } + this.saveConfiguration(); } private saveEvsesStatus() { - if (this.getOcppPersistentConfiguration()) { - this.saveConfiguration(); - } + this.saveConfiguration(); } private saveConfiguration(): void {