Skip to content

Commit 56676ef

Browse files
Chethan BChethan B
authored andcommitted
minor fix
1 parent 5fb78b8 commit 56676ef

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/containers/SearchContainer/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ const getSearchResults = async (query) => {
120120
(await window.__LUNR__.__loaded) &&
121121
window.__LUNR__.en.index.search(query);
122122
searchResults = queryResults.map((searchResult) => {
123+
const doc = window.__LUNR__.en.store[searchResult.ref];
123124
categoryMap[doc.sourceInstanceName] = true;
124125
return {
125126
titlePos: getPositions(searchResult, 'title'),

0 commit comments

Comments
 (0)