fix(ci): fix web ui build
[e-mobility-charging-stations-simulator.git] / src / charging-station / Helpers.ts
index 258613a3f1aa29d32e9818d17db366a9bf8bbcba..2b3e1c7eae58408f212fd79940db666ae1c37cac 100644 (file)
@@ -335,9 +335,13 @@ export const buildConnectorsMap = (
 }
 
 export const setChargingStationOptions = (
+  chargingStation: ChargingStation,
   stationInfo: ChargingStationInfo,
   options?: ChargingStationOptions
 ): ChargingStationInfo => {
+  if (options?.supervisionUrls != null) {
+    chargingStation.setSupervisionUrls(options.supervisionUrls, false)
+  }
   if (options?.persistentConfiguration != null) {
     stationInfo.stationInfoPersistentConfiguration = options.persistentConfiguration
     stationInfo.ocppPersistentConfiguration = options.persistentConfiguration
@@ -496,6 +500,7 @@ export const stationTemplateToStationInfo = (
   delete stationTemplate.Evses
   delete stationTemplate.Configuration
   delete stationTemplate.AutomaticTransactionGenerator
+  delete stationTemplate.numberOfConnectors
   delete stationTemplate.chargeBoxSerialNumberPrefix
   delete stationTemplate.chargePointSerialNumberPrefix
   delete stationTemplate.meterSerialNumberPrefix