FIX: Search was not being initialized properly.

FIX: Search was not being initialized properly.

results is now an array [] not an object, and suggestionResults was not being initialized properly.

diff --git a/app/assets/javascripts/discourse/app/widgets/search-menu.js b/app/assets/javascripts/discourse/app/widgets/search-menu.js
index 4dee355..8e953ab 100644
--- a/app/assets/javascripts/discourse/app/widgets/search-menu.js
+++ b/app/assets/javascripts/discourse/app/widgets/search-menu.js
@@ -18,13 +18,14 @@ const searchData = {};
 
 export function initSearchData() {
   searchData.loading = false;
-  searchData.results = {};
+  searchData.results = [];
   searchData.noResults = false;
   searchData.term = undefined;
   searchData.typeFilter = null;
   searchData.invalidTerm = false;
   searchData.topicId = null;
   searchData.afterAutocomplete = false;
+  searchData.suggestionResults = [];
 }
 
 initSearchData();

GitHub sha: 30e1dbe35302853a9e4bc8f9e243164bc3e2e975

This commit appears in #14247 which was approved by pmusaraj. It was merged by eviltrout.