Skip to content

Commit

Permalink
fix: execute resolve also without a data result
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Dej <[email protected]>
  • Loading branch information
meteyou committed Sep 15, 2024
1 parent 5e95751 commit 15b7106
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/plugins/webSocketClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 15b7106

Please sign in to comment.