Merge pull request #418 from bluewave-labs/fix/pagination-fix

Pagination fix
This commit is contained in:
Alexander Holliday
2024-07-22 14:05:33 -07:00
committed by GitHub

View File

@@ -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)}