Skip to content

Commit 71de0d5

Browse files
author
Amrit Borah
committed
fix: showPagination calc in TableContent
1 parent 9a9a948 commit 71de0d5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Shared/Components/Table/TableContent.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,8 @@ const TableContent = <
179179

180180
const showPagination =
181181
paginationVariant === PaginationEnum.PAGINATED &&
182-
(isBEPagination || filteredRows?.length > (pageSizeOptions?.[0]?.value ?? DEFAULT_BASE_PAGE_SIZE))
182+
((isBEPagination && totalRows) || filteredRows?.length) >
183+
(pageSizeOptions?.[0]?.value ?? DEFAULT_BASE_PAGE_SIZE)
183184

184185
const { activeRowIndex, setActiveRowIndex, shortcutContainerProps } = useTableWithKeyboardShortcuts(
185186
{ bulkSelectionConfig, bulkSelectionReturnValue, handleToggleBulkSelectionOnRow },

0 commit comments

Comments
 (0)