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: reset router settings state on cancel to prevent stale data

Yuneng Jianga449cf801f6b
diff --git a/ui/litellm-dashboard/src/components/team/TeamInfo.tsx b/ui/litellm-dashboard/src/components/team/TeamInfo.tsx
index 722c5218ce6..1459f323a64 100644
--- a/ui/litellm-dashboard/src/components/team/TeamInfo.tsx
+++ b/ui/litellm-dashboard/src/components/team/TeamInfo.tsx
@@ -1308,7 +1308,7 @@ const TeamInfoView: React.FC<TeamInfoProps> = ({
<div className="sticky z-10 bg-white p-4 pr-0 border-t border-gray-200 bottom-[-1.5rem] inset-x-[-1.5rem]">
<div className="flex justify-end items-center gap-2">
- <Button onClick={() => setIsEditing(false)} disabled={isTeamSaving}>
+ <Button onClick={() => { setIsEditing(false); setRouterSettings(null); }} disabled={isTeamSaving}>
Cancel
</Button>
<Button icon={<SaveOutlined className="h-4 w-4" />} type="primary" htmlType="submit" loading={isTeamSaving}>