Skip to content

Commit a76f3eb

Browse files
committed
fix: search projects by multiple words
in the indexer in migrate.ts, the search_projects function is using to_tsquery that does not accept espaces, a solution is to wrap the phrase in single quotes.
1 parent 14adb85 commit a76f3eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/grant-explorer/src/features/discovery/ExploreProjectsPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export function ExploreProjectsPage(): JSX.Element {
4646

4747
function onSearchSubmit(e: React.FormEvent<HTMLFormElement>) {
4848
e.preventDefault();
49-
setSearchQuery(searchInput);
49+
setSearchQuery(`'${searchInput}'`);
5050
}
5151

5252
return (

0 commit comments

Comments
 (0)