|
|
@ -5,7 +5,7 @@ module.exports = class { |
|
|
|
this.state = { |
|
|
|
values: { |
|
|
|
name: "", |
|
|
|
kind: "Event", |
|
|
|
kind: "Character", |
|
|
|
}, |
|
|
|
tags: [], |
|
|
|
suggestions: [], |
|
|
@ -27,7 +27,7 @@ module.exports = class { |
|
|
|
this.state.suggestions = [] |
|
|
|
|
|
|
|
const suggestions = this.state.tags.filter(t => t.name.toLowerCase().includes(search)) |
|
|
|
if (suggestions.length > 0 && suggestions.length < 10) { |
|
|
|
if (suggestions.length > 0 && suggestions.length < 20) { |
|
|
|
if (suggestions.length > 1 || suggestions[0].name !== name) { |
|
|
|
this.state.suggestions = suggestions |
|
|
|
} |
|
|
|