mirror of
https://github.com/bluewave-labs/Checkmate.git
synced 2026-01-24 19:01:01 -06:00
Merge pull request #418 from bluewave-labs/fix/pagination-fix
Pagination fix
This commit is contained in:
@@ -91,7 +91,7 @@ const BasicTable = ({ data, paginated, reversed }) => {
|
||||
}
|
||||
|
||||
let paginationComponent = <></>;
|
||||
if (paginated === true && displayData.length > rowsPerPage) {
|
||||
if (paginated === true && data.rows.length > rowsPerPage) {
|
||||
paginationComponent = (
|
||||
<Pagination
|
||||
count={Math.ceil(data.rows.length / rowsPerPage)}
|
||||
|
||||
Reference in New Issue
Block a user