fixed tag suggestion bug
This commit is contained in:
parent
8c4c5709c6
commit
4eb216e52c
1 changed files with 1 additions and 3 deletions
|
@ -35,9 +35,7 @@ export default function TagsSearch(props: Props) {
|
|||
}
|
||||
|
||||
const doesTagMatch = name => {
|
||||
let nextTag;
|
||||
nextTag = newTag.substr(newTag.lastIndexOf(',') + 1, newTag.length);
|
||||
nextTag = newTag.substr(newTag.lastIndexOf(' ') + 1, newTag.length);
|
||||
const nextTag = newTag.substr(newTag.lastIndexOf(',') + 1, newTag.length).trim();
|
||||
return newTag ? name.toLowerCase().includes(nextTag.toLowerCase()) : true;
|
||||
};
|
||||
// Make sure there are no duplicates, then trim
|
||||
|
|
Loading…
Add table
Reference in a new issue