Skip to content

Commit

Permalink
Just pass the event directly
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist committed Jan 29, 2024
1 parent 719db2d commit 60bd17f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions new-packages/vscode-xstate/src/webview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,7 @@ export const webviewLogic = fromCallback<
switch (event.type) {
case 'UPDATE_DIGRAPH':
webviewPanel.reveal(vscode.ViewColumn.Beside);
webviewPanel.webview.postMessage({
type: 'UPDATE_DIGRAPH',
digraph: event.digraph,
});
webviewPanel.webview.postMessage(event);
return;
default:
event.type satisfies never;
Expand Down

0 comments on commit 60bd17f

Please sign in to comment.