fix(ui): only send organization_id when changed and use raw initial value
This commit is contained in:
parent
5a8f910fe3
commit
1bb726aa7a
@ -491,7 +491,9 @@ const TeamInfoView: React.FC<TeamInfoProps> = ({
|
||||
...(secretManagerSettings !== undefined ? { secret_manager_settings: secretManagerSettings } : {}),
|
||||
},
|
||||
...(values.policies?.length > 0 ? { policies: values.policies } : {}),
|
||||
organization_id: values.organization_id ?? "",
|
||||
...(values.organization_id !== info.organization_id
|
||||
? { organization_id: values.organization_id ?? "" }
|
||||
: {}),
|
||||
};
|
||||
|
||||
updateData.max_budget = mapEmptyStringToNull(updateData.max_budget);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user