Skip to content

Commit 7588774

Browse files
authored
add all mode while searching site content (#2540)
1 parent 683373b commit 7588774

File tree

1 file changed

+5
-1
lines changed
  • packages/gitbook/src/lib

1 file changed

+5
-1
lines changed

packages/gitbook/src/lib/api.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1068,7 +1068,11 @@ export const searchSiteContent = cache({
10681068
siteId,
10691069
{
10701070
query,
1071-
siteSpaceIds,
1071+
...(siteSpaceIds && siteSpaceIds.length > 0
1072+
? { siteSpaceIds }
1073+
: {
1074+
mode: 'all',
1075+
}),
10721076
},
10731077
undefined,
10741078
{

0 commit comments

Comments
 (0)