mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-24 18:24:20 +00:00
Fix UI Flicker in Dashboard (#10261)
This commit is contained in:
parent
2adb2fc6a5
commit
b82af5b826
1 changed files with 2 additions and 2 deletions
|
@ -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 />
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue