From b0ce0bb181dea52f920999d306ad80afc8acb36c Mon Sep 17 00:00:00 2001 From: Erik Jan de Wit Date: Thu, 8 Dec 2022 06:24:59 -0500 Subject: [PATCH] Use id instead of name to disable (#3959) --- .../src/clients/authorization/policy/Group.tsx | 2 +- .../admin-ui/src/components/dynamic/GroupComponent.tsx | 5 ++++- .../src/components/group/GroupPickerDialog.tsx | 10 +++++----- apps/admin-ui/src/groups/components/MoveDialog.tsx | 2 +- apps/admin-ui/src/user/UserForm.tsx | 2 +- 5 files changed, 12 insertions(+), 9 deletions(-) diff --git a/apps/admin-ui/src/clients/authorization/policy/Group.tsx b/apps/admin-ui/src/clients/authorization/policy/Group.tsx index bea58ee2cc..2050b7b429 100644 --- a/apps/admin-ui/src/clients/authorization/policy/Group.tsx +++ b/apps/admin-ui/src/clients/authorization/policy/Group.tsx @@ -119,7 +119,7 @@ export const Group = () => { onClose={() => { setOpen(false); }} - filterGroups={selectedGroups.map(({ name }) => name!)} + filterGroups={selectedGroups} /> )}