summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--webapp/components/suggestion/suggestion_box.jsx3
1 files changed, 1 insertions, 2 deletions
diff --git a/webapp/components/suggestion/suggestion_box.jsx b/webapp/components/suggestion/suggestion_box.jsx
index 2c358b693..f048a03de 100644
--- a/webapp/components/suggestion/suggestion_box.jsx
+++ b/webapp/components/suggestion/suggestion_box.jsx
@@ -139,9 +139,8 @@ export default class SuggestionBox extends React.Component {
if (this.props.onItemSelected) {
const items = SuggestionStore.getItems(this.suggestionId);
- const selection = SuggestionStore.getSelection(this.suggestionId);
for (const i of items) {
- if (i.name === selection) {
+ if (i.name === term) {
this.props.onItemSelected(i);
break;
}