X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fcharging-station%2Fui-server%2FUIHttpServer.ts;h=ee12b3f4de996ed3a8f86b2a4db97949e9ebaf4e;hb=4a3807d16c54137840a60af41877f3b21de12950;hp=cb02d4a54101fd75b8962cee4586bc7b4622eb0d;hpb=e1d9a0f4d6ff1a90048e9a694fd12b7031cc6961;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..ee12b3f4 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) => { if (!isNullOrUndefined(protocolResponse)) { - this.sendResponse(protocolResponse); + this.sendResponse(protocolResponse!); } }) .catch(Constants.EMPTY_FUNCTION);