From b82af5b826553b5d35864c924af3b368a235fd6d Mon Sep 17 00:00:00 2001 From: Christian Owusu <36159205+crisshaker@users.noreply.github.com> Date: Thu, 24 Apr 2025 06:27:44 +0000 Subject: [PATCH] Fix UI Flicker in Dashboard (#10261) --- ui/litellm-dashboard/src/app/page.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/litellm-dashboard/src/app/page.tsx b/ui/litellm-dashboard/src/app/page.tsx index 1fea83d054..2a3b7422ce 100644 --- a/ui/litellm-dashboard/src/app/page.tsx +++ b/ui/litellm-dashboard/src/app/page.tsx @@ -151,7 +151,7 @@ export default function CreateKeyPage() { if (redirectToLogin) { window.location.href = (proxyBaseUrl || "") + "/sso/key/generate" } - }, [token, authLoading]) + }, [redirectToLogin]) useEffect(() => { if (!token) { @@ -223,7 +223,7 @@ export default function CreateKeyPage() { } }, [accessToken, userID, userRole]); - if (authLoading) { + if (authLoading || redirectToLogin) { return }