We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bc5d7a commit 5f6778aCopy full SHA for 5f6778a
ui/post-configuration/components/TagsInput.tsx
@@ -57,7 +57,7 @@ export class TagsInput extends React.Component<ITagsInputProps, ITagsInputState>
57
(!selectedTags || selectedTags.findIndex(st => st.name === tag.name) < 0)
58
)
59
.map(x => ({ name: x.name, key: x.id } as ITag));
60
- if (filteredTags.length <= 0 || filteredTags.findIndex(t => t.name.toLowerCase() !== filterText)) {
+ if (filteredTags.length <= 0 || tags.findIndex(t => t.name.toLowerCase() === filterText.toLowerCase()) < 0) {
61
filteredTags.push({ name: filterText, key: filterText, isNew: true } as INewTag);
62
}
63
return filteredTags;
0 commit comments