diff --git a/src/components/MemberOf/MemberOfNetgroups.tsx b/src/components/MemberOf/MemberOfNetgroups.tsx index 2ce7cf0b..be3fa5a6 100644 --- a/src/components/MemberOf/MemberOfNetgroups.tsx +++ b/src/components/MemberOf/MemberOfNetgroups.tsx @@ -235,6 +235,7 @@ const memberOfNetgroups = (props: MemberOfNetroupsProps) => { } else { setShownNetgroups(netgroupsFromUser); } + setPage(1); }, [membershipDirection, props.user]); // Buttons functionality diff --git a/src/components/MemberOf/MemberOfUserGroups.tsx b/src/components/MemberOf/MemberOfUserGroups.tsx index ebf21bfc..678afea8 100644 --- a/src/components/MemberOf/MemberOfUserGroups.tsx +++ b/src/components/MemberOf/MemberOfUserGroups.tsx @@ -186,6 +186,7 @@ const MemberOfUserGroups = (props: MemberOfUserGroupsProps) => { } else { setShownUserGroups(userGroupsFromUser); } + setPage(1); }, [membershipDirection, props.user]); // Buttons functionality