fix: fix ATG configuration save at template reload
authorJérôme Benoit <jerome.benoit@sap.com>
Sun, 23 Jul 2023 22:04:24 +0000 (00:04 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Sun, 23 Jul 2023 22:04:24 +0000 (00:04 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/ChargingStation.ts

index dfe6737713da6ab12964352884ec03d512e0e377..b74f8b5ddd27905dba8a4701832725ce697bb264 100644 (file)
@@ -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();
                 }