Skip to content

Commit

Permalink
use null for no-search
Browse files Browse the repository at this point in the history
  • Loading branch information
stereobooster committed Mar 26, 2024
1 parent c6d3632 commit 2b5e338
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/pagefind-instantsearch/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ export function getSearchClient<S extends Schema>(
Promise.all(
requests.map(async (request) => {
const response = await index.search(
request.params?.query,
// https://github.com/CloudCannon/pagefind/issues/546#issuecomment-1896570871
request.params?.query?.trim() || null,
adaptRequest(request)
);

Expand Down

0 comments on commit 2b5e338

Please sign in to comment.