Skip to content

Commit

Permalink
chore: clean
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Zeinstra committed Jul 25, 2023
1 parent ebb93b3 commit c499992
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ export const useContributionSearchCdtnReferencesQuery = (
): Result<Pick<CdtnReference, "document">> => {
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<QueryResult>({
Expand Down

0 comments on commit c499992

Please sign in to comment.