mirror of
https://github.com/woodchen-ink/clash-and-dashboard.git
synced 2025-07-18 05:51:56 +08:00
Chore: use current key for connection rows
This commit is contained in:
parent
1936f3f051
commit
2dfc193094
@ -241,18 +241,18 @@ export default function Connections() {
|
||||
|
||||
<div {...getTableBodyProps()} className="connections-body">
|
||||
{
|
||||
rows.map((row, i) => {
|
||||
rows.map(row => {
|
||||
prepareRow(row)
|
||||
return (
|
||||
<div {...row.getRowProps()} className="connections-item" key={i}>
|
||||
<div {...row.getRowProps()} className="connections-item" key={row.original.id}>
|
||||
{
|
||||
row.cells.map((cell, j) => {
|
||||
row.cells.map(cell => {
|
||||
const classname = classnames(
|
||||
'connections-block',
|
||||
{ center: shouldCenter.has(cell.column.id), completed: row.original.completed }
|
||||
)
|
||||
return (
|
||||
<div {...cell.getCellProps()} className={classname} key={j}>
|
||||
<div {...cell.getCellProps()} className={classname} key={cell.column.id}>
|
||||
{ renderCell(cell)}
|
||||
</div>
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user