From 42cf46ef45d7e040da989aa85ad34815f2191118 Mon Sep 17 00:00:00 2001 From: hatim dinia Date: Wed, 3 Apr 2024 18:28:29 +0200 Subject: [PATCH] fix(ui): prevent false duplicates on group form updates --- .../App/Settings/Groups/dialog/GroupFormDialog/GroupForm.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/webapp/src/components/App/Settings/Groups/dialog/GroupFormDialog/GroupForm.tsx b/webapp/src/components/App/Settings/Groups/dialog/GroupFormDialog/GroupForm.tsx index e17dee147b..39e8e26ca4 100644 --- a/webapp/src/components/App/Settings/Groups/dialog/GroupFormDialog/GroupForm.tsx +++ b/webapp/src/components/App/Settings/Groups/dialog/GroupFormDialog/GroupForm.tsx @@ -115,6 +115,7 @@ function GroupForm(props: UseFormReturnPlus) { validateString(v, { existingValues: existingGroups, excludedValues: RESERVED_GROUP_NAMES, + editedValue: defaultValues?.name, // prevent false duplicates on update form }), })} />