From 15b71061f4f06341af334dc5c9da435dd6961b27 Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Sun, 15 Sep 2024 21:07:53 +0200 Subject: [PATCH] fix: execute resolve also without a data result Signed-off-by: Stefan Dej --- src/plugins/webSocketClient.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/plugins/webSocketClient.ts b/src/plugins/webSocketClient.ts index fd015816f..1b12adfa7 100644 --- a/src/plugins/webSocketClient.ts +++ b/src/plugins/webSocketClient.ts @@ -71,9 +71,7 @@ export class WebSocketClient { } // resolve promise if it exists - if (wait?.resolve && 'result' in data) { - wait.resolve(data.result) - } + if (wait?.resolve) wait.resolve(data.result ?? {}) // pass result to action if (wait.action) {