mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-11 03:38:38 +00:00
ui fix tags getting proxy settings (#7234)
This commit is contained in:
parent
1875155efa
commit
df76316dcd
1 changed files with 5 additions and 1 deletions
|
|
@ -244,7 +244,11 @@ const UsagePage: React.FC<UsagePageProps> = ({
|
|||
return;
|
||||
}
|
||||
|
||||
if (proxySettings?.DISABLE_EXPENSIVE_DB_QUERIES) {
|
||||
|
||||
// we refetch because the state variable can be None when the user refreshes the page
|
||||
const proxy_settings: ProxySettings | undefined = await fetchProxySettings();
|
||||
|
||||
if (proxy_settings?.DISABLE_EXPENSIVE_DB_QUERIES) {
|
||||
return; // Don't run expensive DB queries - return out when SpendLogs has more than 1M rows
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue