ammended comment
This commit is contained in:
parent
0caac8e402
commit
b5c7722cb3
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ export default function TagsSearch(props: Props) {
|
|||
|
||||
setNewTag('');
|
||||
|
||||
// Split into individual tags, normalize the tags, and remove duplicates with sets.
|
||||
// Split into individual tags, normalize the tags, and remove duplicates with a set.
|
||||
tags = [...new Set(tags.split(',').map(newTag => newTag.trim().toLowerCase()))];
|
||||
tags.forEach(tag => {
|
||||
if (onSelect) {
|
||||
|
|
Loading…
Add table
Reference in a new issue