diff --git a/apps/dashboard/src/components/integrations/forms/discord-integration.tsx b/apps/dashboard/src/components/integrations/forms/discord-integration.tsx index ecb46ce9..9e874020 100644 --- a/apps/dashboard/src/components/integrations/forms/discord-integration.tsx +++ b/apps/dashboard/src/components/integrations/forms/discord-integration.tsx @@ -19,12 +19,13 @@ export function DiscordIntegrationForm({ defaultValues?: RouterOutputs['integration']['get']; onSuccess: () => void; }) { - const { organizationId } = useAppParams(); + const { organizationId, projectId } = useAppParams(); const form = useForm({ defaultValues: mergeDeepRight( { id: defaultValues?.id, organizationId, + projectId, config: { type: 'discord' as const, url: '', diff --git a/apps/dashboard/src/components/integrations/forms/webhook-integration.tsx b/apps/dashboard/src/components/integrations/forms/webhook-integration.tsx index 2941527e..7eb02074 100644 --- a/apps/dashboard/src/components/integrations/forms/webhook-integration.tsx +++ b/apps/dashboard/src/components/integrations/forms/webhook-integration.tsx @@ -20,12 +20,13 @@ export function WebhookIntegrationForm({ defaultValues?: RouterOutputs['integration']['get']; onSuccess: () => void; }) { - const { organizationId } = useAppParams(); + const { organizationId, projectId } = useAppParams(); const form = useForm({ defaultValues: mergeDeepRight( { id: defaultValues?.id, organizationId, + projectId, config: { type: 'webhook' as const, url: '',