diff --git a/apps/dashboard/src/pages/integrations/components/hooks/use-integration-primary-modal.tsx b/apps/dashboard/src/pages/integrations/components/hooks/use-integration-primary-modal.tsx index 27011f332aa..820f387df0f 100644 --- a/apps/dashboard/src/pages/integrations/components/hooks/use-integration-primary-modal.tsx +++ b/apps/dashboard/src/pages/integrations/components/hooks/use-integration-primary-modal.tsx @@ -71,14 +71,6 @@ export function useIntegrationPrimaryModal({ try { if (newPrimaryIntegrationId && setPrimaryIntegration) { - await onSubmit( - { - ...pendingData, - primary: false, - }, - true - ); - await setPrimaryIntegration({ integrationId: newPrimaryIntegrationId }); } else { await onSubmit(pendingData, true);