mirror of
https://github.com/tale/headplane.git
synced 2026-07-26 15:58:14 +00:00
fix: use proper route ids for key mapping
This commit is contained in:
@@ -149,9 +149,9 @@ export default function Page() {
|
||||
</p>
|
||||
</div>
|
||||
)
|
||||
: [...routes, ...routes].map((route, i) => (
|
||||
: routes.map((route, i) => (
|
||||
<div
|
||||
key={route.node.id}
|
||||
key={route.id}
|
||||
className={cn(
|
||||
'flex items-center justify-between',
|
||||
routes.length - 1 === i ? 'border-b pb-3 mb-2' : '',
|
||||
@@ -179,7 +179,7 @@ export default function Page() {
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
))}
|
||||
))}
|
||||
</Card>
|
||||
</div>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user