Skip to content

Commit

Permalink
fix(index): missing react key
Browse files Browse the repository at this point in the history
  • Loading branch information
TheChristophe committed Oct 3, 2023
1 parent f295380 commit 9a34685
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions frontend/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,20 @@ const Templates: NextPage = () => {
{difference(availableTags, selectedTags)
.sort()
.map((tag) => (
<option value={tag}>{tag}</option>
<option key={tag} value={tag}>
{tag}
</option>
))}
</>
)}
</select>
<div className="ml-2 flex flex-row flex-wrap gap-1">
{selectedTags.map((tag) => (
<SelectedTag tag={tag} onDelete={(tag) => unselect(tag)} />
<SelectedTag
key={tag}
tag={tag}
onDelete={(tag) => unselect(tag)}
/>
))}
</div>
</div>
Expand Down

0 comments on commit 9a34685

Please sign in to comment.