Skip to content

Commit e657681

Browse files
committed
chore: remove index from key
1 parent fa6c04b commit e657681

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/client/editor/Editor.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,11 @@ export const Editor: FC<EditorProps> = ({
131131
<DropdownMenuContent>
132132
{Object.entries(examples)
133133
.sort()
134-
.map(([slug, title], index) => {
134+
.map(([slug, title]) => {
135135
const href = `${window.location.origin}/parameters/example/${slug}`;
136136
return (
137137
<DropdownMenuItem
138-
key={`${slug}-${index}`}
138+
key={slug}
139139
asChild={true}
140140
>
141141
<a href={href} target="_blank" rel="noreferrer">

0 commit comments

Comments
 (0)