diff --git a/ui/litellm-dashboard/src/components/edit_user.tsx b/ui/litellm-dashboard/src/components/edit_user.tsx index 4932abe192..0d5d14e64d 100644 --- a/ui/litellm-dashboard/src/components/edit_user.tsx +++ b/ui/litellm-dashboard/src/components/edit_user.tsx @@ -44,9 +44,9 @@ const EditUserModal: React.FC = ({ visible, possibleUIRoles, const handleEditSubmit = async (formValues: Record) => { // Call API to update team with teamId and values - form.resetFields(); - onSubmit(formValues); + + form.resetFields(); onCancel(); }; @@ -95,15 +95,15 @@ const EditUserModal: React.FC = ({ visible, possibleUIRoles, name="user_role" > - {possibleUIRoles && - Object.entries(possibleUIRoles).map(([role, { ui_label, description }]) => ( - -
- {ui_label}

{description}

-
-
- ))} -
+ {possibleUIRoles && + Object.entries(possibleUIRoles).map(([role, { ui_label, description }]) => ( + +
+ {ui_label}

{description}

+
+
+ ))} + diff --git a/ui/litellm-dashboard/src/components/view_users.tsx b/ui/litellm-dashboard/src/components/view_users.tsx index 9e28913285..ea1625514c 100644 --- a/ui/litellm-dashboard/src/components/view_users.tsx +++ b/ui/litellm-dashboard/src/components/view_users.tsx @@ -78,7 +78,7 @@ const ViewUserDashboard: React.FC = ({ return; } - userUpdateUserCall(accessToken, editedUser, userRole); + userUpdateUserCall(accessToken, editedUser, null); if (userData) { const updatedUserData = userData.map((user) =>