From: Jérôme Benoit Date: Sun, 23 Jul 2023 22:04:24 +0000 (+0200) Subject: fix: fix ATG configuration save at template reload X-Git-Tag: v1.2.20~163 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=e3d35515a6372b184121b7805c543fabc6f52692;p=e-mobility-charging-stations-simulator.git fix: fix ATG configuration save at template reload Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/ChargingStation.ts b/src/charging-station/ChargingStation.ts index dfe67377..b74f8b5d 100644 --- a/src/charging-station/ChargingStation.ts +++ b/src/charging-station/ChargingStation.ts @@ -689,9 +689,9 @@ export class ChargingStation { // Initialize this.initialize(); this.idTagsCache.deleteIdTags(getIdTagsFile(this.stationInfo)!); - delete this.automaticTransactionGeneratorConfiguration; // Restart the ATG this.stopAutomaticTransactionGenerator(); + delete this.automaticTransactionGeneratorConfiguration; if (this.getAutomaticTransactionGeneratorConfiguration()?.enable === true) { this.startAutomaticTransactionGenerator(); }