Skip to content

Commit

Permalink
fix: Encountered two children with the same key (#891)
Browse files Browse the repository at this point in the history
  • Loading branch information
dangkhoa99 committed Dec 26, 2023
1 parent 05ba9ef commit ad6acbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/material-react-table/src/body/MRT_TableBody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -289,11 +289,11 @@ export const MRT_TableBody = <TData extends MRT_RowData>({
};
return memoMode === 'rows' ? (
<Memo_MRT_TableBodyRow
key={`${row.id}${row.index}`}
key={`${row.id}-${row.index}`}
{...props}
/>
) : (
<MRT_TableBodyRow key={`${row.id}${row.index}`} {...props} />
<MRT_TableBodyRow key={`${row.id}-${row.index}`} {...props} />
);
})}
</>
Expand Down

2 comments on commit ad6acbe

@vercel
Copy link

@vercel vercel bot commented on ad6acbe Dec 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on ad6acbe Dec 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.