diff --git a/web/src/pages/WebhookNew/WehookForm.tsx b/web/src/pages/WebhookNew/WehookForm.tsx index e1813aafd..5e2f3d97c 100644 --- a/web/src/pages/WebhookNew/WehookForm.tsx +++ b/web/src/pages/WebhookNew/WehookForm.tsx @@ -81,7 +81,7 @@ export function WehookForm({ repoMetadata, isEdit, webhook }: WebHookFormProps) url: webhook?.url || '', secret: isEdit && webhook?.has_secret ? SECRET_MASK : '', enabled: webhook ? (webhook?.enabled as boolean) : true, - secure: webhook?.insecure === false || false, + secure: webhook ? (webhook?.insecure === false as boolean) : true, branchCreated: webhook?.triggers?.includes(WebhookIndividualEvent.BRANCH_CREATED) || false, branchUpdated: webhook?.triggers?.includes(WebhookIndividualEvent.BRANCH_UPDATED) || false, branchDeleted: webhook?.triggers?.includes(WebhookIndividualEvent.BRANCH_DELETED) || false,