From a76f3eb72ab9a375f30a33122da5a3bdaa7114ee Mon Sep 17 00:00:00 2001 From: Hussein Martinez Date: Wed, 7 Aug 2024 21:08:04 +0300 Subject: [PATCH] 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. --- .../src/features/discovery/ExploreProjectsPage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/grant-explorer/src/features/discovery/ExploreProjectsPage.tsx b/packages/grant-explorer/src/features/discovery/ExploreProjectsPage.tsx index 8b61862698..0d770a4cec 100644 --- a/packages/grant-explorer/src/features/discovery/ExploreProjectsPage.tsx +++ b/packages/grant-explorer/src/features/discovery/ExploreProjectsPage.tsx @@ -46,7 +46,7 @@ export function ExploreProjectsPage(): JSX.Element { function onSearchSubmit(e: React.FormEvent) { e.preventDefault(); - setSearchQuery(searchInput); + setSearchQuery(`'${searchInput}'`); } return (