From 350a849ab673197ce9be1cade6d25a2dec298e85 Mon Sep 17 00:00:00 2001 From: Ty Balascio Date: Fri, 25 Sep 2026 20:55:44 -0700 Subject: [PATCH] fix(fe): derive the title figure from the live selection figureName read slab.figureTermIds (the stored prop) while regenerateCopy() runs against the local figIds edit state, so a freshly picked figure never reached the title - drafts published as 'Black Walnut Slab' instead of 'Quilted Black Walnut Slab'. Read the local selection instead. --- frontend/src/review/ReviewForm.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/review/ReviewForm.svelte b/frontend/src/review/ReviewForm.svelte index 163b319..76b7224 100644 --- a/frontend/src/review/ReviewForm.svelte +++ b/frontend/src/review/ReviewForm.svelte @@ -48,7 +48,7 @@ $: figTags = (taxonomy?.tags ?? []).filter((t) => t.slug.startsWith('fig-') || t.name.startsWith('fig-')); $: featTags = (taxonomy?.tags ?? []).filter((t) => t.slug.startsWith('feat-') || t.name.startsWith('feat-')); $: speciesName = (id: number | null) => categories.find((c) => c.id === id)?.name ?? ''; - $: figureName = figureTerms.find((t) => t.id === (slab.figureTermIds?.[0] ?? null))?.name ?? null; + $: figureName = figureTerms.find((t) => t.id === (figIds[0] ?? null))?.name ?? null; // ── Draft fields ── let sku = slab.sku || '';