Skip to content
Snippets Groups Projects
Commit 9a34685b authored by Christophe's avatar Christophe
Browse files

fix(index): missing react key

parent f2953804
No related branches found
No related tags found
1 merge request!10Update ai4eosc branch with recent main (multiple templates)
......@@ -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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment