From e707a99c1ac3a475c487b019193387ec0d61e643 Mon Sep 17 00:00:00 2001 From: Ishaan Jaffer Date: Tue, 10 Mar 2026 14:23:34 -0700 Subject: [PATCH] fix: propagate cleared auth fields to parent formValues when switching to non-OAuth preset --- .../src/components/mcp_tools/OpenAPIFormSection.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ui/litellm-dashboard/src/components/mcp_tools/OpenAPIFormSection.tsx b/ui/litellm-dashboard/src/components/mcp_tools/OpenAPIFormSection.tsx index 68412ea21bc..9aea93df48a 100644 --- a/ui/litellm-dashboard/src/components/mcp_tools/OpenAPIFormSection.tsx +++ b/ui/litellm-dashboard/src/components/mcp_tools/OpenAPIFormSection.tsx @@ -43,6 +43,10 @@ const OpenAPIFormSection: React.FC = ({ // setFieldsValue with undefined silently skips undefined keys. form.resetFields(["auth_type", "authorization_url", "token_url"]); form.setFieldsValue(updates); + // Propagate cleared values so parent formValues stays in sync with the form. + updates.auth_type = undefined; + updates.authorization_url = undefined; + updates.token_url = undefined; } onValuesChange(updates); };