From 3368a3d132ca8105c0660d97ae1ce8027f490614 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AF=97=E4=BA=BA=E7=9A=84=E5=92=B8=E9=B1=BC?= Date: Tue, 28 Feb 2023 23:29:37 +0800 Subject: [PATCH] fix: webhook no reset when addHook --- packages/nc-gui/components/webhook/Drawer.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/nc-gui/components/webhook/Drawer.vue b/packages/nc-gui/components/webhook/Drawer.vue index 238c5cc27c..68d12dea74 100644 --- a/packages/nc-gui/components/webhook/Drawer.vue +++ b/packages/nc-gui/components/webhook/Drawer.vue @@ -19,6 +19,11 @@ async function editHook(hook: Record) { editOrAdd.value = true currentHook.value = hook } + +async function addHook() { + editOrAdd.value = true + currentHook.value = undefined +}