X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fcharging-station%2Fui-server%2Fui-services%2FAbstractUIService.ts;h=44caca5472daca4084a8e5177a47d225ac304901;hb=13a6f27c10768faa05acf33fd8e0637511d49e3e;hp=847401013e606759a98dde88ab295a7c6b80e08d;hpb=aa63c9b772ff17bce2febf68a57720eab96d5f8e;p=e-mobility-charging-stations-simulator.git diff --git a/src/charging-station/ui-server/ui-services/AbstractUIService.ts b/src/charging-station/ui-server/ui-services/AbstractUIService.ts index 84740101..44caca54 100644 --- a/src/charging-station/ui-server/ui-services/AbstractUIService.ts +++ b/src/charging-station/ui-server/ui-services/AbstractUIService.ts @@ -163,8 +163,8 @@ export abstract class AbstractUIService { ): void { if (isNotEmptyArray(payload.hashIds)) { payload.hashIds = payload.hashIds - ?.map((hashId) => { - if (hashId != null && this.uiServer.chargingStations.has(hashId)) { + .map(hashId => { + if (this.uiServer.chargingStations.has(hashId)) { return hashId } logger.warn( @@ -175,7 +175,7 @@ export abstract class AbstractUIService { ) return undefined }) - ?.filter((hashId) => hashId != null) as string[] + .filter(hashId => hashId != null) as string[] } else { delete payload.hashIds }