Skip to content
This repository was archived by the owner on Jan 15, 2022. It is now read-only.

Commit 477c1ec

Browse files
committed
Don't show pager if only one page
1 parent 13248c4 commit 477c1ec

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/reactable/table.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ export class Table extends React.Component {
410410
currentPage = numPages - 1;
411411
}
412412

413-
pagination = true;
413+
pagination = numPages > 1;
414414
currentChildren = filteredChildren.slice(
415415
currentPage * itemsPerPage,
416416
(currentPage + 1) * itemsPerPage

0 commit comments

Comments
 (0)