From b71664d08e9f5cbe68c63633b606d8f324964c19 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Mon, 15 Aug 2022 17:31:52 +0800 Subject: [PATCH] fix(gui-v2): undefined of applyChanges --- packages/nc-gui-v2/components/webhook/Editor.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/nc-gui-v2/components/webhook/Editor.vue b/packages/nc-gui-v2/components/webhook/Editor.vue index ca83068c8b..e1711acff7 100644 --- a/packages/nc-gui-v2/components/webhook/Editor.vue +++ b/packages/nc-gui-v2/components/webhook/Editor.vue @@ -339,7 +339,9 @@ async function saveHooks() { hook.id = res.id } - await filterRef.value.applyChanges(hook.id) + if (filterRef.value) { + await filterRef.value.applyChanges(hook.id) + } message.success('Webhook details updated successfully') } catch (e: any) {