Skip to content

Commit 03959f8

Browse files
committed
fix(CompactRow): regression where wrong index is used (see #66)
1 parent 7489a29 commit 03959f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/compact/CompactRow.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export const CompactRow: React.FC<CompactRowProps> = ({
3333
{rowOptions?.renderBeforeRow && rowOptions.renderBeforeRow(item, index)}
3434

3535
<Row item={item} {...rowProps}>
36-
{columns.map((column: Column) => {
36+
{columns.map((column: Column, jindex: number) => {
3737
const sharedProps = {
3838
pinLeft: column.pinLeft,
3939
pinRight: column.pinRight,
@@ -79,7 +79,7 @@ export const CompactRow: React.FC<CompactRowProps> = ({
7979
}
8080

8181
return (
82-
<React.Fragment key={index}>
82+
<React.Fragment key={jindex}>
8383
{checkbox}
8484
{cell}
8585
</React.Fragment>

0 commit comments

Comments
 (0)