Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
}
private getOcppConfigurationFromFile(): ChargingStationOcppConfiguration | undefined {
- if (this.getOcppPersistentConfiguration() === true) {
- return { configurationKey: this.getConfigurationFromFile()?.configurationKey };
+ const configurationKey = this.getConfigurationFromFile()?.configurationKey;
+ if (this.getOcppPersistentConfiguration() === true && configurationKey) {
+ return { configurationKey };
}
+ return undefined;
}
private getOcppConfiguration(): ChargingStationOcppConfiguration | undefined {