diff --git a/packages/web/components/panel.tsx b/packages/web/components/panel.tsx index b30aed1..a32e7bd 100644 --- a/packages/web/components/panel.tsx +++ b/packages/web/components/panel.tsx @@ -44,7 +44,7 @@ export function Panel({ let data = evt.data; if (!data) return; if (data.type === "event") { - editor.dispatchAppEvent(data.name, data.args); + editor.dispatchAppEvent(data.name, ...data.args); } }; window.addEventListener("message", messageListener);