FIX: Search was not being initialized properly.

`results` is now an array `[]` not an object, and `suggestionResults`
was not being initialized properly.
This commit is contained in:
Robin Ward 2021-09-03 16:21:55 -04:00
parent 4b6307ecd9
commit 30e1dbe353
1 changed files with 2 additions and 1 deletions

View File

@ -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();