From 8b8b6307ccb03f321a1b51353e1b819ce13fd396 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Mon, 3 Jan 2022 15:43:11 +0530 Subject: [PATCH] fix: prefill old notification payload on webhook edit re #866 Signed-off-by: Pranav C --- packages/nc-gui/components/project/tableTabs/webhooks.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nc-gui/components/project/tableTabs/webhooks.vue b/packages/nc-gui/components/project/tableTabs/webhooks.vue index 46a8fda4e6..b718138685 100644 --- a/packages/nc-gui/components/project/tableTabs/webhooks.vue +++ b/packages/nc-gui/components/project/tableTabs/webhooks.vue @@ -529,7 +529,7 @@ export default { type } } - this.enableCondition = !!(this.hook && Object.keys(this.hook.condition).length) + this.enableCondition = !!(this.hook && this.hook.condition && Object.keys(this.hook.condition).length) await this.onNotTypeChange() this.notification = payload if (this.hook.notification.type === 'Slack') {