in public/js/components/FormFields/FormFieldTagPicker.js [66:88]
renderSuggestions() {
if (!this.state.suggestions) {
return false;
}
if (!this.state.suggestions.length) {
return <div>No tags found</div>;
}
return (
<div className="form__field__suggestions">
{this.state.suggestions.map((suggestion) => {
const updateFn = () => {
this.selectTag(suggestion.id);
};
return (
<a className="form__field__suggestion" key={suggestion.id} title={suggestion.id} onClick={updateFn}>{suggestion.internalName || suggestion.webTitle} ({suggestion.type})</a>
);
})}
</div>
);
}