We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20d4dd2 commit 6f1bf55Copy full SHA for 6f1bf55
src/components/ProductCatalog.tsx
@@ -44,13 +44,13 @@ const ProductCatalog = ({ products }: { products: ProductData[] }) => {
44
useEffect(() => {
45
// On component load, check for deep-links to groups in the query param
46
const params = new URLSearchParams(window.location.search);
47
- const groups = params.get("product-group");
+ const groups = params.get("product-group")?.split(",");
48
49
if (!groups) return;
50
51
setFilters({
52
...filters,
53
- groups: [groups],
+ groups,
54
});
55
}, []);
56
0 commit comments