Skip to content

Commit 73147a9

Browse files
fix: use rowIndex as the key
Co-authored-by: vercel[bot] <35613825+vercel[bot]@users.noreply.github.com>
1 parent bf75630 commit 73147a9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

components/answer/table.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ export default function AnswerTable({ columns, rows }: AnswerTableProps) {
1616

1717
<TableBody>
1818
{rows.length > 0
19-
? rows.map((row) => (
20-
<TableRow key={row.join(",")}>
21-
{row.map((cell) => (
22-
<TableCell key={cell}>
19+
? rows.map((row, rowIndex) => (
20+
<TableRow key={rowIndex}>
21+
{row.map((cell, cellIndex) => (
22+
<TableCell key={cellIndex}>
2323
<code>{cell}</code>
2424
</TableCell>
2525
))}

0 commit comments

Comments
 (0)