Skip to content

Commit

Permalink
fix: Fix edit user group form submission
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveGT96 committed Nov 13, 2024
1 parent ffd1b5a commit 2bf0651
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ export const EditGroup = () => {
initialValues: group.data ?? { code: "" },
validationSchema: userGroupSchema(t),
onSubmit: (values: UserGroupDTO) => {
values.permissions = groupPermissions;
const dto: UserGroupDTO = { ...values, permissions: groupPermissions };

dispatch(updateUserGroup(dto));
Expand Down

0 comments on commit 2bf0651

Please sign in to comment.