mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-23 02:53:29 +00:00
narrowing
This commit is contained in:
@@ -65,11 +65,13 @@ export const SearchResults = React.forwardRef(function SearchResults(
|
||||
|
||||
const fetchResults = React.useCallback(
|
||||
async (query: string, global: boolean, pointer?: any, revisionId?: any) => {
|
||||
const fetchedResults = await (global
|
||||
? searchAllSiteContent(query, pointer)
|
||||
: searchSiteSpaceContent(query, pointer, revisionId));
|
||||
// const fetchedResults = await (global
|
||||
// ? searchAllSiteContent(query, pointer)
|
||||
// : searchSiteSpaceContent(query, pointer, revisionId));
|
||||
const fetchedResults = await searchAllSiteContent(query, pointer);
|
||||
|
||||
console.log('Fetching global results...');
|
||||
|
||||
console.log('Fetching results...')
|
||||
// Track the event only when the query changes
|
||||
trackEvent({
|
||||
type: 'search_type_query',
|
||||
|
||||
Reference in New Issue
Block a user