diff --git a/packages/features/webhooks/components/WebhookForm.tsx b/packages/features/webhooks/components/WebhookForm.tsx index b9f47aa344..59e066e597 100644 --- a/packages/features/webhooks/components/WebhookForm.tsx +++ b/packages/features/webhooks/components/WebhookForm.tsx @@ -121,7 +121,9 @@ const WebhookForm = (props: { }, }); - const [useCustomTemplate, setUseCustomTemplate] = useState(false); + const [useCustomTemplate, setUseCustomTemplate] = useState( + props?.webhook?.payloadTemplate !== undefined && props?.webhook?.payloadTemplate !== null + ); const [newSecret, setNewSecret] = useState(""); const [changeSecret, setChangeSecret] = useState(false); const hasSecretKey = !!props?.webhook?.secret;