Skip to content

Commit

Permalink
fix: fix search page no results, closes #389
Browse files Browse the repository at this point in the history
  • Loading branch information
weareoutman committed Dec 23, 2023
1 parent 86561f6 commit 64e26c2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function SearchPageContent(): React.ReactElement {
useEffect(() => {
async function doFetchIndexes() {
const { wrappedIndexes, zhDictionary } =
searchContext || useAllContextsWithNoSearchContext
!Array.isArray(searchContextByPaths) || searchContext || useAllContextsWithNoSearchContext
? await fetchIndexes(versionUrl, searchContext)
: { wrappedIndexes: [], zhDictionary: [] };
setSearchSource(() =>
Expand Down

0 comments on commit 64e26c2

Please sign in to comment.