From 3d2e818601270bf9fa6c28a615fbb521c2bdadad Mon Sep 17 00:00:00 2001 From: Raju Udava <86527202+dstala@users.noreply.github.com> Date: Tue, 2 Aug 2022 15:13:56 +0530 Subject: [PATCH] refactor: remove user context information from webhook panel Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com> --- packages/nc-gui-v2/components/webhook/Editor.vue | 7 ++----- packages/nc-gui-v2/components/webhook/Test.vue | 2 -- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/packages/nc-gui-v2/components/webhook/Editor.vue b/packages/nc-gui-v2/components/webhook/Editor.vue index 9d646352a4..1539e62a71 100644 --- a/packages/nc-gui-v2/components/webhook/Editor.vue +++ b/packages/nc-gui-v2/components/webhook/Editor.vue @@ -576,14 +576,11 @@ onMounted(() => {
- Available context variables are data and user + Use context variable data to refer the record under consideration diff --git a/packages/nc-gui-v2/components/webhook/Test.vue b/packages/nc-gui-v2/components/webhook/Test.vue index bd0ae39c34..e1ab3cc54a 100644 --- a/packages/nc-gui-v2/components/webhook/Test.vue +++ b/packages/nc-gui-v2/components/webhook/Test.vue @@ -18,7 +18,6 @@ const meta = inject(MetaInj) const sampleData = ref({ data: {}, - user: {}, }) const activeKey = ref(0) @@ -32,7 +31,6 @@ watch( async function loadSampleData() { sampleData.value = { data: await $api.dbTableWebhook.samplePayloadGet(meta?.value?.id as string, hook?.operation), - user: $state.user.value as Record, } }