mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-09 08:18:12 +00:00
fix(ui): default new user metadata to {} so empty submit isn't rejected
Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
parent
f9704497fb
commit
014433e6a7
1 changed files with 2 additions and 2 deletions
|
|
@ -189,7 +189,7 @@ export const CreateUserButton: React.FC<CreateuserProps> = ({
|
|||
labelCol={{ span: 8 }}
|
||||
wrapperCol={{ span: 16 }}
|
||||
labelAlign="left"
|
||||
initialValues={{ user_role: "internal_user_viewer", send_invite_email: true }}
|
||||
initialValues={{ user_role: "internal_user_viewer", send_invite_email: true, metadata: "{}" }}
|
||||
>
|
||||
<Alert
|
||||
message="Email invitations"
|
||||
|
|
@ -282,7 +282,7 @@ export const CreateUserButton: React.FC<CreateuserProps> = ({
|
|||
labelCol={{ span: 8 }}
|
||||
wrapperCol={{ span: 16 }}
|
||||
labelAlign="left"
|
||||
initialValues={{ user_role: "internal_user_viewer", send_invite_email: true }}
|
||||
initialValues={{ user_role: "internal_user_viewer", send_invite_email: true, metadata: "{}" }}
|
||||
>
|
||||
<Form.Item label="User Email" name="user_email">
|
||||
<Input />
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue