Pagination fix

This commit is contained in:
Daniel Cojocea committed 2024-07-22 17:03:09 -04:00
1 parent c3ab0a0948
commit d871907d97
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)}