Skip to content

Commit

Permalink
fix(devtools): add keys to mapped entries for Explorer (#3446)
Browse files Browse the repository at this point in the history
  • Loading branch information
Liam-Tait authored Mar 27, 2022
1 parent 5388160 commit 9f23b64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/devtools/Explorer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export const DefaultRenderer: Renderer = ({
subEntryPages.length === 1 ? (
<SubEntries>
{subEntries.map(entry => (
<HandleEntry entry={entry} />
<HandleEntry key={entry.label} entry={entry} />
))}
</SubEntries>
) : (
Expand All @@ -141,7 +141,7 @@ export const DefaultRenderer: Renderer = ({
{expandedPages.includes(index) ? (
<SubEntries>
{entries.map(entry => (
<HandleEntry entry={entry} />
<HandleEntry key={entry.label} entry={entry} />
))}
</SubEntries>
) : null}
Expand Down

1 comment on commit 9f23b64

@vercel
Copy link

@vercel vercel bot commented on 9f23b64 Mar 27, 2022

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.