From 7f42796724e26eba160c08c38e447f44fb2343a4 Mon Sep 17 00:00:00 2001 From: James Grugett Date: Sat, 23 Jul 2022 15:02:06 -0500 Subject: [PATCH] Update algolia filters to use groupLinks.slug isntead of deprecated groupSlugs field. --- web/components/contract-search.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/components/contract-search.tsx b/web/components/contract-search.tsx index cf59b573..45145c54 100644 --- a/web/components/contract-search.tsx +++ b/web/components/contract-search.tsx @@ -130,15 +130,15 @@ export function ContractSearch(props: { : '', additionalFilter?.tag ? `lowercaseTags:${additionalFilter.tag}` : '', additionalFilter?.groupSlug - ? `groupSlugs:${additionalFilter.groupSlug}` + ? `groupLinks.slug:${additionalFilter.groupSlug}` : '', pillFilter && pillFilter !== 'personal' && pillFilter !== 'your-bets' - ? `groupSlugs:${pillFilter}` + ? `groupLinks.slug:${pillFilter}` : '', pillFilter === 'personal' ? // Show contracts in groups that the user is a member of memberGroupSlugs - .map((slug) => `groupSlugs:${slug}`) + .map((slug) => `groupLinks.slug:${slug}`) // Show contracts created by users the user follows .concat(follows?.map((followId) => `creatorId:${followId}`) ?? []) // Show contracts bet on by users the user follows