From 69e7b66f6b9c3283edc20b0557dfb694dfa7d6b4 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Wed, 27 Jul 2022 19:32:34 +0800 Subject: [PATCH] fix(gui-v2): feed notification payload to hook.api --- packages/nc-gui-v2/components/webhook/Editor.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nc-gui-v2/components/webhook/Editor.vue b/packages/nc-gui-v2/components/webhook/Editor.vue index 127f2707d8..b45ccba3c9 100644 --- a/packages/nc-gui-v2/components/webhook/Editor.vue +++ b/packages/nc-gui-v2/components/webhook/Editor.vue @@ -261,7 +261,7 @@ function filterOption(input: string, option: Option) { } function setHook(newHook: any) { - Object.assign(hook, { ...newHook }) + Object.assign(hook, { ...newHook, api: { ...newHook.notification.payload } }) } async function onEventChange() {