From e3d35515a6372b184121b7805c543fabc6f52692 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Mon, 24 Jul 2023 00:04:24 +0200 Subject: [PATCH] fix: fix ATG configuration save at template reload 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } -- 2.34.1