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]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
fix(ui/team): wait for useGuardrails to resolve before rendering edit form
Ryan Crabbe59f66af0f9f5
diff --git a/ui/litellm-dashboard/src/components/team/TeamInfo.tsx b/ui/litellm-dashboard/src/components/team/TeamInfo.tsxindex edc95aff21b..33a192a1d9b 100644--- a/ui/litellm-dashboard/src/components/team/TeamInfo.tsx+++ b/ui/litellm-dashboard/src/components/team/TeamInfo.tsx@@ -179,7 +179,7 @@ const TeamInfoView: React.FC<TeamInfoProps> = ({const [mcpAccessGroups, setMcpAccessGroups] = useState<string[]>([]);const [mcpAccessGroupsLoaded, setMcpAccessGroupsLoaded] = useState(false);const [copiedStates, setCopiedStates] = useState<Record<string, boolean>>({});- const { data: guardrailsData } = useGuardrails();+ const { data: guardrailsData, isLoading: isGuardrailsLoading } = useGuardrails();const globalGuardrailNames = guardrailsData?.globalGuardrailNames ?? new Set<string>();const [policiesList, setPoliciesList] = useState<string[]>([]);const [policyGuardrails, setPolicyGuardrails] = useState<Record<string, string[]>>({});@@ -855,7 +855,9 @@ const TeamInfoView: React.FC<TeamInfoProps> = ({)}</div>- {isEditing ? (+ {isEditing && isGuardrailsLoading ? (+ <div className="p-4">Loading...</div>+ ) : isEditing ? (<Formform={form}onFinish={handleTeamUpdate}