From 2bf06514111afb3f5ab91747faeea5feb75a273a Mon Sep 17 00:00:00 2001 From: SteveGT96 Date: Wed, 13 Nov 2024 12:04:10 +0100 Subject: [PATCH] fix: Fix edit user group form submission --- src/components/accessories/admin/users/editGroup/EditGroup.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/components/accessories/admin/users/editGroup/EditGroup.tsx b/src/components/accessories/admin/users/editGroup/EditGroup.tsx index 9ab256b62..ddbed24a7 100644 --- a/src/components/accessories/admin/users/editGroup/EditGroup.tsx +++ b/src/components/accessories/admin/users/editGroup/EditGroup.tsx @@ -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));