From 86f905c36d698fd1efcedadca0d6401c9ee7b5a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=A4=E6=9C=88?= <17949154+yazhouio@users.noreply.github.com> Date: Wed, 24 Jul 2024 11:16:43 +0800 Subject: [PATCH] fix: Fix table head list key (#280) * fix: Fix table head list key Signed-off-by: yazhou * chore: update version Signed-off-by: yazhou --------- Signed-off-by: yazhou --- .changeset/proud-tables-cheer.md | 13 +++++++++++++ .../components/src/Table/DataTable/BaseTable.tsx | 4 ++-- 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 .changeset/proud-tables-cheer.md diff --git a/.changeset/proud-tables-cheer.md b/.changeset/proud-tables-cheer.md new file mode 100644 index 00000000..b7d5e824 --- /dev/null +++ b/.changeset/proud-tables-cheer.md @@ -0,0 +1,13 @@ +--- +'@kubed/code-editor': patch +'@kubed/diff-viewer': patch +'@kubed/components': patch +'@kubed/log-viewer': patch +'@kubed/charts': patch +'@kubed/hooks': patch +'@kubed/icons': patch +'@kubed/tests': patch +'kubed-documents': patch +--- + +fix: Fix table head list key error diff --git a/packages/components/src/Table/DataTable/BaseTable.tsx b/packages/components/src/Table/DataTable/BaseTable.tsx index 803183bb..3804c9e8 100644 --- a/packages/components/src/Table/DataTable/BaseTable.tsx +++ b/packages/components/src/Table/DataTable/BaseTable.tsx @@ -39,9 +39,9 @@ export function BaseDataTable({ table }: BaseDataTableProps) { {loading && (table.getRowModel().rows.length === 0 ? : null)} {table.getHeaderGroups().map((headerGroup) => ( - + {headerGroup.headers.map((header) => ( - + ))} ))}