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

Pagination fix
This commit is contained in:
Alexander Holliday authored and GitHub committed 2024-07-22 14:05:33 -07:00
commit 74236f3c9e
1 file changed
+1 -1
+1 -1
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)}