mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-11 22:51:28 +00:00
fix(ui): send null (not '') for cleared organization_id on team update
AntD <Select allowClear> returns undefined when the user clears the selection. Coalescing to "" caused the team-update payload to carry organization_id: "" instead of null, relying on the backend to coerce it. Send null directly so the intent is explicit at the source.
This commit is contained in:
parent
866c4a25ff
commit
c495acda1b
1 changed files with 1 additions and 1 deletions
|
|
@ -495,7 +495,7 @@ const TeamInfoView: React.FC<TeamInfoProps> = ({
|
|||
},
|
||||
...(values.policies?.length > 0 ? { policies: values.policies } : {}),
|
||||
...(values.organization_id !== info.organization_id
|
||||
? { organization_id: values.organization_id ?? "" }
|
||||
? { organization_id: values.organization_id ?? null }
|
||||
: {}),
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue