From b800038381ffb3f3ee13ed26627a86f79eb561dc Mon Sep 17 00:00:00 2001 From: Toby Bellwood Date: Fri, 1 Nov 2024 07:54:53 +1100 Subject: [PATCH 1/2] chore: remove check for 10 { +const Groups = ({ groups = [], organizationId, organizationName, refetch, orgFriendlyName }) => { const [modalStates, setModalStates] = useState({ addUser: { open: false, @@ -210,7 +210,6 @@ const Groups = ({ groups = [], organizationId, organizationName, ableToAddGroup, labelText="Groups" /> g.name)} diff --git a/src/pages/organizations/groups.js b/src/pages/organizations/groups.js index d4bf6041..83a37b5f 100644 --- a/src/pages/organizations/groups.js +++ b/src/pages/organizations/groups.js @@ -65,9 +65,6 @@ export const PageGroups = ({ router }) => { return ; } - // disable adding new groups if non-default groups count is 10 - const ableToAddGroup = organization.groups.filter(group => group.type !== 'project-default-group').length < 10; - return ( <> @@ -89,7 +86,6 @@ export const PageGroups = ({ router }) => { organizationId={organization.id} organizationName={organization.name} orgFriendlyName={organization.friendlyName} - ableToAddGroup={ableToAddGroup} refetch={handleRefetch} /> From 545e51c22fa04c61a657e1efb3b94a35d85d5007 Mon Sep 17 00:00:00 2001 From: Toby Bellwood Date: Fri, 1 Nov 2024 08:00:48 +1100 Subject: [PATCH 2/2] chore: prettier fix --- src/components/Organizations/Groups/index.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/components/Organizations/Groups/index.js b/src/components/Organizations/Groups/index.js index 1dd92a42..29471ca5 100644 --- a/src/components/Organizations/Groups/index.js +++ b/src/components/Organizations/Groups/index.js @@ -209,11 +209,7 @@ const Groups = ({ groups = [], organizationId, organizationName, refetch, orgFri emptyText="No groups found" labelText="Groups" /> - g.name)} - /> + g.name)} /> );