fix: fix supervision url handling at charging stations adding
[e-mobility-charging-stations-simulator.git] / src / charging-station / Helpers.ts
index 2b3e1c7eae58408f212fd79940db666ae1c37cac..22ed5041e0515cc6b0769b3acb85df2d54525287 100644 (file)
@@ -335,12 +335,11 @@ export const buildConnectorsMap = (
 }
 
 export const setChargingStationOptions = (
-  chargingStation: ChargingStation,
   stationInfo: ChargingStationInfo,
   options?: ChargingStationOptions
 ): ChargingStationInfo => {
   if (options?.supervisionUrls != null) {
-    chargingStation.setSupervisionUrls(options.supervisionUrls, false)
+    stationInfo.supervisionUrls = options.supervisionUrls
   }
   if (options?.persistentConfiguration != null) {
     stationInfo.stationInfoPersistentConfiguration = options.persistentConfiguration