Skip to content

Commit

Permalink
Fix available elements not shown in add
Browse files Browse the repository at this point in the history
Not all the available elements are being
shown in the dual selector when opening
the 'Add' modal, preventing those to be
added. This is due to the limitation
performed in the query when retrieving
the elements that are not being assigned
to a given user.

Fixes: #348
Signed-off-by: Carla Martinez <[email protected]>
  • Loading branch information
carma12 committed Apr 26, 2024
1 parent ac6e139 commit 5a86f14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/MemberOf/MemberOfNetgroups.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const memberOfNetgroups = (props: MemberOfNetroupsProps) => {
no_user: uid,
apiVersion: API_VERSION_BACKUP,
startIdx: firstUserIdx,
stopIdx: lastUserIdx,
stopIdx: 100, // Limited to max. 100 netgroups to show in the dual selector
});

const [netgroupsFullList, setNetgroupsFullList] = React.useState<Netgroup[]>(
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useUserMemberOfData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const useUserMemberOfData = ({
no_user: uid,
apiVersion: API_VERSION_BACKUP,
startIdx: firstUserIdx,
stopIdx: lastUserIdx,
stopIdx: 100, // Limited to max. 100 groups to show in the dual selector
});

const [userGroupsFullList, setUserGroupsFullList] = React.useState<
Expand Down

0 comments on commit 5a86f14

Please sign in to comment.