From 3eabca728354bd56173f42d461c5a3a567abd943 Mon Sep 17 00:00:00 2001 From: Nicholas Chiang Date: Sat, 24 Feb 2024 23:26:12 -0700 Subject: [PATCH] fix(app/routes/brands): link to brand products This patch links to the products page instead of the shows page when a user clicks on a brand link. We show all the products that have that brand. Previously, there were very few brands listed that had shows. --- app/routes/_layout.brands.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/routes/_layout.brands.tsx b/app/routes/_layout.brands.tsx index 3c149e0a..3ef168ce 100644 --- a/app/routes/_layout.brands.tsx +++ b/app/routes/_layout.brands.tsx @@ -24,10 +24,10 @@ export default function BrandsPage() { return ( {brands.map((brand) => { - const param = filterToSearchParam<'brand', 'is'>({ + const param = filterToSearchParam<'brands', 'some'>({ id: nanoid(5), - name: 'brand', - condition: 'is', + name: 'brands', + condition: 'some', value: { id: brand.id, name: brand.name }, }) return ( @@ -35,7 +35,7 @@ export default function BrandsPage() { {brand.name}