We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f9750b commit 17ee7f8Copy full SHA for 17ee7f8
addon/options.js
@@ -337,7 +337,7 @@ class Option extends React.Component {
337
this.setState({
338
activeSuggestion: 0,
339
filteredSuggestions: suggestions,
340
- showSuggestions: true
+ showSuggestions: (suggestions != null)
341
});
342
}
343
onBlur() {
@@ -403,10 +403,10 @@ class Option extends React.Component {
403
return;
404
405
localStorage.setItem(this.key, inputValue);
406
- const filteredSuggestions = suggestions.filter(
+ const filteredSuggestions = suggestions ? suggestions.filter(
407
suggestion =>
408
suggestion.toLowerCase().indexOf(inputValue.toLowerCase()) > -1
409
- );
+ ) : [];
410
411
412
0 commit comments