Skip to content

Commit

Permalink
Merge pull request #390 from easyops-cn/steve/fix-search-page
Browse files Browse the repository at this point in the history
fix: fix search page no results, closes #389
  • Loading branch information
weareoutman committed Dec 23, 2023
2 parents 86561f6 + 64e26c2 commit 7977948
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 7977948

Please sign in to comment.