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 8f68fca commit f68547eCopy full SHA for f68547e
app/components/search-input/dropdown.js
@@ -34,12 +34,14 @@ export default class Dropdown extends Component {
34
* }
35
36
*/
37
+
38
get _groupedResults() {
- if (!get(this, 'results.length')) {
39
+ let results = this.results || [];
40
+ if (!results.length) {
41
return {};
42
}
43
- const lvl0Group = this.results.reduce((previous, current) => {
44
+ const lvl0Group = results.reduce((previous, current) => {
45
// Remap all lowercase usages of 'guides' to 'Guides'
46
let lvl0 = get(current, 'hierarchy.lvl0');
47
// If lvl0 doesn't exist in the resulting object, create the array
0 commit comments