Skip to content

Commit

Permalink
Fix table not being passed initial pageSize variable (#218)
Browse files Browse the repository at this point in the history
  • Loading branch information
brdunfield authored Jun 12, 2024
1 parent ee5f5a5 commit c951883
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@civicactions/cmsds-open-data-components",
"version": "3.2.0",
"version": "3.2.1",
"description": "Components for the open data catalog frontend using CMS Design System",
"main": "dist/main.js",
"source": "src/index.ts",
Expand Down
6 changes: 6 additions & 0 deletions src/components/DataDictionaryTable/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ const DataDictionaryTable = ({tableColumns, tableData, pageSize, columnFilters}
getPaginationRowModel: getPaginationRowModel(),
getSortedRowModel: getSortedRowModel(),
onSortingChange: setSorting,
initialState: {
pagination: {
pageSize: pageSize,
pageIndex: 0
}
},
state: {
sorting,
columnFilters
Expand Down

0 comments on commit c951883

Please sign in to comment.