Fix Set spread TS error: use Array.from instead of spread syntax
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
6f6a941007
commit
9779198d46
@ -66,7 +66,7 @@ export default function BouquetPicker({ product, onClose }: Props) {
|
|||||||
fetch(BASE + '/colors.json').then((r) => r.ok ? r.json() : []),
|
fetch(BASE + '/colors.json').then((r) => r.ok ? r.json() : []),
|
||||||
]).then(([{ items }, families]: [{ items: CatalogItem[] }, ColorFamily[]]) => {
|
]).then(([{ items }, families]: [{ items: CatalogItem[] }, ColorFamily[]]) => {
|
||||||
// Log all unique category slugs so we can verify "build" is present
|
// 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())
|
console.log('[BouquetPicker] category slugs in catalog:', allSlugs.sort())
|
||||||
|
|
||||||
const inBuild = (item: CatalogItem) =>
|
const inBuild = (item: CatalogItem) =>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user