mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user