X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fcharging-station%2Fui-server%2FUIWebSocketServer.ts;h=5651ab5a405f3d98c00f0688ff7f493ab7da8a71;hb=b3d7d65476a4ab586b3ccd188f0bfbe8452aba0e;hp=b28b6df76f4d33e85ab2cf82178a86addfc6e94c;hpb=e1d9a0f4d6ff1a90048e9a694fd12b7031cc6961;p=e-mobility-charging-stations-simulator.git diff --git a/src/charging-station/ui-server/UIWebSocketServer.ts b/src/charging-station/ui-server/UIWebSocketServer.ts index b28b6df7..5651ab5a 100644 --- a/src/charging-station/ui-server/UIWebSocketServer.ts +++ b/src/charging-station/ui-server/UIWebSocketServer.ts @@ -60,9 +60,9 @@ export class UIWebSocketServer extends AbstractUIServer { this.uiServices .get(version) ?.requestHandler(request) - .then((protocolResponse: ProtocolResponse) => { + .then((protocolResponse?: ProtocolResponse) => { if (!isNullOrUndefined(protocolResponse)) { - this.sendResponse(protocolResponse); + this.sendResponse(protocolResponse!); } }) .catch(Constants.EMPTY_FUNCTION);