From d77cc239bfcd295da8536d6cf34cd340b3b160ef Mon Sep 17 00:00:00 2001 From: Felipe Almeman Date: Sat, 6 Jun 2026 16:07:44 -0300 Subject: [PATCH] fix(dashboard): refresh connections after provider auth import MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Import-auth modal onSuccess callbacks (Codex/Claude/Gemini) called fetchData(), which is not defined in ProviderDetailPage — importing those credentials threw 'fetchData is not defined' and the connections list never refreshed. Use the existing fetchConnections() instead. --- src/app/(dashboard)/dashboard/providers/[id]/page.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/(dashboard)/dashboard/providers/[id]/page.tsx b/src/app/(dashboard)/dashboard/providers/[id]/page.tsx index 934efc73d151..fdfd6b4ee132 100644 --- a/src/app/(dashboard)/dashboard/providers/[id]/page.tsx +++ b/src/app/(dashboard)/dashboard/providers/[id]/page.tsx @@ -5146,7 +5146,7 @@ export default function ProviderDetailPage() { onClose={() => setImportCodexModalOpen(false)} onSuccess={() => { setImportCodexModalOpen(false); - fetchData(); + fetchConnections(); }} /> )} @@ -5213,7 +5213,7 @@ export default function ProviderDetailPage() { onClose={() => setImportClaudeModalOpen(false)} onSuccess={() => { setImportClaudeModalOpen(false); - fetchData(); + fetchConnections(); }} /> )} @@ -5234,7 +5234,7 @@ export default function ProviderDetailPage() { onClose={() => setImportGeminiModalOpen(false)} onSuccess={() => { setImportGeminiModalOpen(false); - fetchData(); + fetchConnections(); }} /> )}