From c499992089bb8a2d6f9a8d5c8a15c10400219d32 Mon Sep 17 00:00:00 2001 From: Victor Zeinstra Date: Tue, 25 Jul 2023 11:28:36 +0200 Subject: [PATCH] chore: clean --- .../answers/references/cdtnReferencesSearch.query.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/targets/frontend/src/components/contributions/answers/references/cdtnReferencesSearch.query.ts b/targets/frontend/src/components/contributions/answers/references/cdtnReferencesSearch.query.ts index 9e2f58ced..75758164c 100644 --- a/targets/frontend/src/components/contributions/answers/references/cdtnReferencesSearch.query.ts +++ b/targets/frontend/src/components/contributions/answers/references/cdtnReferencesSearch.query.ts @@ -32,11 +32,11 @@ export const useContributionSearchCdtnReferencesQuery = ( ): Result> => { const querySplit = query?.split(/[ -,]/); const slugQuery = querySplit?.map( - (query) => `{slug: {_ilike: "%${query.normalize()}%"}}` + (text) => `{slug: {_ilike: "%${text.normalize()}%"}}` ).join(`, `); const titleQuery = querySplit?.map( - (query) => `{title: {_ilike: "%${query.normalize()}%"}}` + (text) => `{title: {_ilike: "%${text.normalize()}%"}}` ).join(`, `); const [{ data, fetching, error }] = useQuery({