From 758aa565fb332f092b15030ec8ce3659435208f3 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Wed, 27 Jul 2022 18:59:14 +0800 Subject: [PATCH] fix(gui-v2): use setHook instead --- packages/nc-gui-v2/components/webhook/Drawer.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nc-gui-v2/components/webhook/Drawer.vue b/packages/nc-gui-v2/components/webhook/Drawer.vue index 2c8462810d..65894820e5 100644 --- a/packages/nc-gui-v2/components/webhook/Drawer.vue +++ b/packages/nc-gui-v2/components/webhook/Drawer.vue @@ -22,7 +22,7 @@ const dialogShow = computed({ async function editHook(hook: Record) { editOrAdd.value = true nextTick(async () => { - webhookEditorRef.value.hook = { ...hook } + webhookEditorRef.value.setHook(hook) await webhookEditorRef.value.onEventChange() }) }