From 75589db569fa5fe5d158e76f153d1304de08dc3e Mon Sep 17 00:00:00 2001 From: Hariom Balhara Date: Tue, 4 Oct 2022 00:33:47 +0530 Subject: [PATCH] Hotfix: Fix Broken webhooks (#4807) --- packages/features/webhooks/components/WebhookForm.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/features/webhooks/components/WebhookForm.tsx b/packages/features/webhooks/components/WebhookForm.tsx index c9ab8476d5..3b6404b308 100644 --- a/packages/features/webhooks/components/WebhookForm.tsx +++ b/packages/features/webhooks/components/WebhookForm.tsx @@ -53,7 +53,9 @@ const WebhookForm = (props: { const triggerOptions = [...WEBHOOK_TRIGGER_EVENTS_GROUPED_BY_APP_V2["core"]]; if (apps) { for (const app of apps) { - triggerOptions.push(...WEBHOOK_TRIGGER_EVENTS_GROUPED_BY_APP_V2[app]); + if (WEBHOOK_TRIGGER_EVENTS_GROUPED_BY_APP_V2[app]) { + triggerOptions.push(...WEBHOOK_TRIGGER_EVENTS_GROUPED_BY_APP_V2[app]); + } } } const translatedTriggerOptions = triggerOptions.map((option) => ({ ...option, label: t(option.label) }));