From c3028be8c068c60dedd90be85face069b7e999e3 Mon Sep 17 00:00:00 2001 From: Guillermo Vaya Date: Sun, 17 Jul 2022 18:52:47 +0200 Subject: [PATCH] fix argument passing --- packages/web/components/panel.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);