From 9779198d46b5b2e36aa20802ce7034058d002a6f Mon Sep 17 00:00:00 2001 From: chris Date: Thu, 18 Jun 2026 12:54:37 -0400 Subject: [PATCH] Fix Set spread TS error: use Array.from instead of spread syntax Co-Authored-By: Claude Sonnet 4.6 --- estore/src/components/BouquetPicker.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/estore/src/components/BouquetPicker.tsx b/estore/src/components/BouquetPicker.tsx index 9524a19..3edb7d9 100644 --- a/estore/src/components/BouquetPicker.tsx +++ b/estore/src/components/BouquetPicker.tsx @@ -66,7 +66,7 @@ export default function BouquetPicker({ product, onClose }: Props) { fetch(BASE + '/colors.json').then((r) => r.ok ? r.json() : []), ]).then(([{ items }, families]: [{ items: CatalogItem[] }, ColorFamily[]]) => { // Log all unique category slugs so we can verify "build" is present - const allSlugs = [...new Set((items as CatalogItem[]).flatMap((i) => i.categories ?? [i.category]))] + const allSlugs = Array.from(new Set((items as CatalogItem[]).flatMap((i) => i.categories ?? [i.category]))) console.log('[BouquetPicker] category slugs in catalog:', allSlugs.sort()) const inBuild = (item: CatalogItem) =>