Skip to content

Commit

Permalink
feat: update row count for pagination (#302)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fran McDade authored and Fran McDade committed Jan 3, 2025
1 parent cbbf323 commit 910a4c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Table/table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,8 @@ TableProps<T>): JSX.Element => {
loading: false,
paginationResponse: {
...DEFAULT_PAGINATION_STATE,
pageSize: rows.length,
rows: rows.length,
pageSize: rows.filter(({ getIsGrouped }) => !getIsGrouped()).length,
rows: rows.filter(({ getIsGrouped }) => !getIsGrouped()).length,
},
selectCategories: buildCategoryViews(allColumns, columnFilters),
},
Expand Down

0 comments on commit 910a4c7

Please sign in to comment.