From 7446de3b161acfb6f47352b55a4607b15cf66436 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sat, 29 Apr 2023 11:27:31 +0200 Subject: [PATCH] fix: fix condition at saving connectors/evses MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/charging-station/ChargingStation.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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 { -- 2.34.1