mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-26 01:12:21 +00:00
fix(createMCP): persist userFields across OAuth redirect
This commit is contained in:
parent
11982ba9ce
commit
5403fbbbb1
1 changed files with 4 additions and 0 deletions
|
|
@ -109,6 +109,7 @@ const CreateMCPServer: React.FC<CreateMCPServerProps> = ({
|
|||
searchValue,
|
||||
aliasManuallyEdited,
|
||||
logoUrl,
|
||||
userFields,
|
||||
}),
|
||||
);
|
||||
} catch (err) {
|
||||
|
|
@ -213,6 +214,9 @@ const CreateMCPServer: React.FC<CreateMCPServerProps> = ({
|
|||
if (parsed.logoUrl) {
|
||||
setLogoUrl(parsed.logoUrl);
|
||||
}
|
||||
if (Array.isArray(parsed.userFields)) {
|
||||
setUserFields(parsed.userFields);
|
||||
}
|
||||
} catch (err) {
|
||||
console.error("Failed to restore MCP create state", err);
|
||||
} finally {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue