Skip to content

Commit

Permalink
Merge pull request wso2#6400 from pavinduLakshan/fix_user_pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
pavinduLakshan authored Jun 4, 2024
2 parents cd2e3b9 + 9dd72ff commit 5a824ab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/rich-wasps-crash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wso2is/admin.users.v1": patch
---

Fix user list pagination
3 changes: 0 additions & 3 deletions features/admin.users.v1/pages/users.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -509,9 +509,6 @@ const UsersPage: FunctionComponent<UsersPageInterface> = (
!resource[SCIMConfigs?.scim?.enterpriseSchema]?.managedOrg);
}

if (clonedUserList.totalResults && clonedUserList.totalResults > 0) {
clonedUserList.totalResults = clonedUserList?.Resources?.length;
}

return moderateUsersList(clonedUserList, modifiedLimit, TEMP_RESOURCE_LIST_ITEM_LIMIT_OFFSET);
};
Expand Down

0 comments on commit 5a824ab

Please sign in to comment.