Skip to content

Commit

Permalink
fix: Fix table head list key (#280)
Browse files Browse the repository at this point in the history
* fix: Fix table head list key

Signed-off-by: yazhou <[email protected]>

* chore: update version

Signed-off-by: yazhou <[email protected]>

---------

Signed-off-by: yazhou <[email protected]>
  • Loading branch information
yazhouio authored Jul 24, 2024
1 parent d816dcf commit 86f905c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
13 changes: 13 additions & 0 deletions .changeset/proud-tables-cheer.md
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions packages/components/src/Table/DataTable/BaseTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ export function BaseDataTable<T>({ table }: BaseDataTableProps<T>) {
{loading && (table.getRowModel().rows.length === 0 ? <LoadingWrapper /> : null)}
<BaseTable.TableHead>
{table.getHeaderGroups().map((headerGroup) => (
<BaseTable.TableRow>
<BaseTable.TableRow key={headerGroup.id}>
{headerGroup.headers.map((header) => (
<TableHead header={header} table={table} />
<TableHead header={header} table={table} key={header.id} />
))}
</BaseTable.TableRow>
))}
Expand Down

0 comments on commit 86f905c

Please sign in to comment.