From 967346965e6925f64ed4c85428c8cdc3538970a5 Mon Sep 17 00:00:00 2001 From: Nick Brown Date: Thu, 25 Aug 2022 20:24:00 +0100 Subject: [PATCH] Added a comment --- .../components/GroupMembershipManager.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/samples/react-group-membership-manager/src/webparts/groupMembershipManager/components/GroupMembershipManager.tsx b/samples/react-group-membership-manager/src/webparts/groupMembershipManager/components/GroupMembershipManager.tsx index f2362da6b..efb1ca050 100644 --- a/samples/react-group-membership-manager/src/webparts/groupMembershipManager/components/GroupMembershipManager.tsx +++ b/samples/react-group-membership-manager/src/webparts/groupMembershipManager/components/GroupMembershipManager.tsx @@ -75,11 +75,12 @@ export default function GroupMembershipManager(props: IGroupMembershipManagerPro
{strings.Members} {!members && } - {members && <> - + {members && <> + {//don't display the toolbar if the group is dynamic + !(groups.filter(g => g.displayName === group)[0].groupTypes?.filter(g => g === "DynamicMembership").length > 0) && g.displayName === group)[0]} Mode={AddUserMode.Member} onCompleted={loadGroup} /> - + } {members.map(user => (