Skip to content

Commit

Permalink
fix: show pagination when enough items (#5948)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwasniew committed Jan 18, 2024
1 parent 3dd188e commit 1057472
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -101,7 +101,10 @@ export const PaginatedTable = <T extends object>({
</Table>
</TableContainer>
<ConditionallyRender
condition={tableInstance.getRowModel().rows.length > 0}
condition={
tableInstance.getRowModel().rows.length > 0 &&
(totalItems || 0) > pagination.pageSize
}
show={
<StickyPaginationBar
totalItems={totalItems}
Expand Down

0 comments on commit 1057472

Please sign in to comment.