Skip to content
Snippets Groups Projects
Commit 9a85b08a authored by ml bonhomme's avatar ml bonhomme :bee: Committed by Erwan Rouchet
Browse files

Fix class name display when adding a classification to a selection

parent 2343dc4a
No related branches found
No related tags found
1 merge request!1623Fix class name display when adding a classification to a selection
......@@ -303,8 +303,8 @@ export default defineComponent({
this.setValidInput(this.allowEmpty)
return
}
const suggestion = (await Promise.resolve(this.getSuggestions(newValue))).suggestions[newValue]
const term = this.suggestions[newValue] ?? newValue
const suggestion = (await Promise.resolve(this.getSuggestions(term))).suggestions[newValue]
if (suggestion) {
this.input = suggestion
} else {
......
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