Make webhook active by default (#3067)

This commit is contained in:
Jakub Neander 2023-01-30 12:59:24 +01:00 committed by GitHub
parent 1baa9d35a7
commit 7b8ececc3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -70,7 +70,7 @@ const WebhookDetailsPage: React.FC<WebhookDetailsPageProps> = ({
const initialForm: WebhookFormData = {
syncEvents: webhook?.syncEvents?.map(event => event.eventType) || [],
asyncEvents: webhook?.asyncEvents?.map(event => event.eventType) || [],
isActive: !!webhook?.isActive,
isActive: !!webhook?.isActive || true,
name: webhook?.name || "",
secretKey: webhook?.secretKey || "",
targetUrl: webhook?.targetUrl || "",