From 09e99dc4ae61f382b96515b804f57d8fda93c01a Mon Sep 17 00:00:00 2001 From: Bethany Dunfield Date: Wed, 12 Jun 2024 08:28:37 -0600 Subject: [PATCH 1/2] Fix table not being passed initial pageSize variable --- src/components/DataDictionaryTable/index.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/components/DataDictionaryTable/index.tsx b/src/components/DataDictionaryTable/index.tsx index 09170112..e7ee4543 100644 --- a/src/components/DataDictionaryTable/index.tsx +++ b/src/components/DataDictionaryTable/index.tsx @@ -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 From 4dca74abe72de5b63399f1a750de927d6b12098a Mon Sep 17 00:00:00 2001 From: Daniel Gading Date: Wed, 12 Jun 2024 11:28:50 -0400 Subject: [PATCH 2/2] Bump version to 3.2.1 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 1d87d141..00d6e0dc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@civicactions/cmsds-open-data-components", - "version": "3.2.0", + "version": "3.2.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@civicactions/cmsds-open-data-components", - "version": "3.2.0", + "version": "3.2.1", "license": "GPL-3.0", "dependencies": { "@popperjs/core": "^2.11.6", diff --git a/package.json b/package.json index 5f6c01a0..4d5950b2 100644 --- a/package.json +++ b/package.json @@ -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",