The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
some fixes
Kiran Kd3c98d28d332
diff --git a/apps/web/lib/webhook/create-webhook.ts b/apps/web/lib/webhook/create-webhook.tsindex fd7e6d175b..ba14da6ce9 100644--- a/apps/web/lib/webhook/create-webhook.ts+++ b/apps/web/lib/webhook/create-webhook.ts@@ -58,7 +58,6 @@ export async function createWebhook({await prisma.project.update({where: {id: workspaceId,- webhookEnabled: false,},data: {webhookEnabled: true,diff --git a/apps/web/ui/modals/link-builder/webhook-select.tsx b/apps/web/ui/modals/link-builder/webhook-select.tsxindex d312eeda91..f339889af4 100644--- a/apps/web/ui/modals/link-builder/webhook-select.tsx+++ b/apps/web/ui/modals/link-builder/webhook-select.tsx@@ -15,13 +15,9 @@ export function WebhookSelect() {const webhookIds = watch("webhookIds") as string[];- const linkLevelWebhooks = availableWebhooks?.filter((webhook) =>- webhook.triggers.includes("link.clicked"),- );-const options = useMemo(() =>- linkLevelWebhooks?.map((webhook) => ({+ availableWebhooks?.map((webhook) => ({label: webhook.name,value: webhook.id,icon: <Webhook className="size-3.5" />,diff --git a/apps/web/ui/webhooks/add-edit-webhook-form.tsx b/apps/web/ui/webhooks/add-edit-webhook-form.tsxindex fdc7b3a2bb..260f2bad75 100644--- a/apps/web/ui/webhooks/add-edit-webhook-form.tsx+++ b/apps/web/ui/webhooks/add-edit-webhook-form.tsx@@ -104,13 +104,14 @@ export default function AddEditWebhookForm({const buttonDisabled = !name || !url || !triggers.length || saving;const updateDisabled =- webhook?.installationId !== null || permissionsError !== false;+ (webhook && webhook?.installationId !== null) || permissionsError !== false;- const disabledTooltip = webhook?.installationId- ? `This webhook is managed by an integration.`- : permissionsError- ? permissionsError- : undefined;+ const disabledTooltip =+ webhook && webhook?.installationId+ ? `This webhook is managed by an integration.`+ : permissionsError+ ? permissionsError+ : undefined;const enableLinkSelection = LINK_LEVEL_WEBHOOK_TRIGGERS.some((trigger) =>triggers.includes(trigger),