1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-04 00:18:01 +01:00

fix: show pagination when enough items (#5948)

This commit is contained in:
Mateusz Kwasniewski 2024-01-18 14:36:05 +01:00 committed by GitHub
parent 3dd188e77c
commit 105747293e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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}