Skip to content

Commit 08c8d2b

Browse files
committed
fix
1 parent 2cca078 commit 08c8d2b

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-block/hooks/use-webhook-info.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export function useWebhookInfo(blockId: string, workflowId: string): UseWebhookI
9090

9191
if (webhooks.length > 0) {
9292
const webhook = webhooks[0].webhook
93-
const isActive = (webhook as { isActive?: boolean }).isActive !== false
93+
const isActive = webhook.isActive !== false
9494
setWebhookStatus({
9595
isDisabled: !isActive,
9696
webhookId: webhook.id,

apps/sim/lib/api/contracts/webhooks.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export const webhookDataSchema = z
1818
id: z.string(),
1919
path: z.string().optional(),
2020
providerConfig: webhookProviderConfigSchema.optional(),
21+
isActive: z.boolean().optional(),
2122
})
2223
.passthrough()
2324

0 commit comments

Comments
 (0)