Skip to content

Commit

Permalink
Merge pull request #7193 from mpmadhavig/rolecount-issue
Browse files Browse the repository at this point in the history
Fix show pagination issue in roles page
  • Loading branch information
mpmadhavig authored Dec 11, 2024
2 parents 0adff33 + 3312876 commit 192dc56
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/khaki-apples-juggle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wso2is/admin.roles.v2": patch
---

Fix role pagination issue.
2 changes: 1 addition & 1 deletion features/admin.roles.v2/pages/role.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ const RolesPage: FunctionComponent<RolesPagePropsInterface> = (
/>
)
}
showPagination={ rolesList?.totalResults > 0 }
showPagination={ true }
totalPages={ Math.ceil(rolesList?.totalResults / listItemLimit) }
totalListSize={ rolesList?.totalResults }
isLoading={ isRolesListLoading }
Expand Down

0 comments on commit 192dc56

Please sign in to comment.