Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

Fix UI Flicker in Dashboard (#10261)

Christian Owusub82af5b82655
diff --git a/ui/litellm-dashboard/src/app/page.tsx b/ui/litellm-dashboard/src/app/page.tsx
index 1fea83d0542..2a3b7422ce1 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 <LoadingScreen />
}