X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fcharging-station%2Fui-server%2FUIHttpServer.ts;h=103a27aed75c163ef7481035ae2eef681ac6b81a;hb=a37fc6dc8267e22b2b2d35773525980b81f014e8;hp=cb02d4a54101fd75b8962cee4586bc7b4622eb0d;hpb=7f8958fea58c80fd6286c46eff3cae9a1f4a361c;p=e-mobility-charging-stations-simulator.git diff --git a/src/charging-station/ui-server/UIHttpServer.ts b/src/charging-station/ui-server/UIHttpServer.ts index cb02d4a5..103a27ae 100644 --- a/src/charging-station/ui-server/UIHttpServer.ts +++ b/src/charging-station/ui-server/UIHttpServer.ts @@ -132,9 +132,9 @@ export class UIHttpServer extends AbstractUIServer { body ?? Constants.EMPTY_FREEZED_OBJECT, ), ) - .then((protocolResponse: ProtocolResponse) => { + .then((protocolResponse: ProtocolResponse | undefined) => { if (!isNullOrUndefined(protocolResponse)) { - this.sendResponse(protocolResponse); + this.sendResponse(protocolResponse!); } }) .catch(Constants.EMPTY_FUNCTION);