File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
packages/gitbook/src/components/Search Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -128,6 +128,7 @@ export function SearchContainer(props: SearchContainerProps) {
128
128
129
129
// We trim the query to avoid invalidating the search when the user is typing between words.
130
130
const normalizedQuery = state ?. query ?. trim ( ) ?? '' ;
131
+ const normalizedAsk = state ?. ask ?. trim ( ) ?? '' ;
131
132
132
133
return (
133
134
< SearchAskProvider value = { searchAsk } >
@@ -147,7 +148,7 @@ export function SearchContainer(props: SearchContainerProps) {
147
148
aiMode = { aiMode }
148
149
/>
149
150
) : null }
150
- { state ?. ask ? < SearchAskAnswer query = { normalizedQuery } /> : null }
151
+ { normalizedAsk ? < SearchAskAnswer query = { normalizedAsk } /> : null }
151
152
</ React . Suspense >
152
153
) : null
153
154
}
You can’t perform that action at this time.
0 commit comments