X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fcharging-station%2Fui-server%2Fui-services%2FAbstractUIService.ts;h=c0a7c7997974f0027b94189e276ed23f6a93bcf2;hb=a974c8e4b8a98c9450be49546a77be0d03e9f512;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..c0a7c799 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 }