Merge pull request #418 from bluewave-labs/fix/pagination-fix
Pagination fix
This commit is contained in:
1 file changed
+1
-1
@@ -91,7 +91,7 @@ const BasicTable = ({ data, paginated, reversed }) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let paginationComponent = <></>;
|
let paginationComponent = <></>;
|
||||||
if (paginated === true && displayData.length > rowsPerPage) {
|
if (paginated === true && data.rows.length > rowsPerPage) {
|
||||||
paginationComponent = (
|
paginationComponent = (
|
||||||
<Pagination
|
<Pagination
|
||||||
count={Math.ceil(data.rows.length / rowsPerPage)}
|
count={Math.ceil(data.rows.length / rowsPerPage)}
|
||||||
|
|||||||
Reference in new issue
Block a user