diff --git a/src/components/Organizations/Groups/index.js b/src/components/Organizations/Groups/index.js index b6462eb7..29471ca5 100644 --- a/src/components/Organizations/Groups/index.js +++ b/src/components/Organizations/Groups/index.js @@ -23,7 +23,7 @@ const DELETE_GROUP = gql` /** * The primary list of groups. */ -const Groups = ({ groups = [], organizationId, organizationName, ableToAddGroup, refetch, orgFriendlyName }) => { +const Groups = ({ groups = [], organizationId, organizationName, refetch, orgFriendlyName }) => { const [modalStates, setModalStates] = useState({ addUser: { open: false, @@ -209,12 +209,7 @@ const Groups = ({ groups = [], organizationId, organizationName, ableToAddGroup, emptyText="No groups found" labelText="Groups" /> - g.name)} - /> + 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} />