← back to Designerwallcoverings
build-romo-rolls: guard empty baseSku — skip products with no sample SKU so they never create a colliding '-Roll' variant
0aa44647ef3b4560b162d5cd040759eb4ab1e7b7 · 2026-08-04 11:03:58 -0700 · Steve Abrams
Files touched
Diff
commit 0aa44647ef3b4560b162d5cd040759eb4ab1e7b7
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Tue Aug 4 11:03:58 2026 -0700
build-romo-rolls: guard empty baseSku — skip products with no sample SKU so they never create a colliding '-Roll' variant
---
build-romo-rolls.mjs | 1 +
1 file changed, 1 insertion(+)
diff --git a/build-romo-rolls.mjs b/build-romo-rolls.mjs
index ccafea3..7201ade 100644
--- a/build-romo-rolls.mjs
+++ b/build-romo-rolls.mjs
@@ -78,6 +78,7 @@ while (made < CAP) {
for (const p of conn.nodes) {
if (made >= CAP) break;
const baseSku = (p.variants.nodes[0] && p.variants.nodes[0].sku || '').replace(/-Sample$/i, '');
+ if (!baseSku) { skipped++; continue; } // no SKU → skip; never build a colliding "-Roll" variant
if (done.has(baseSku)) continue;
scanned++;
const vs = p.variants.nodes;
← 651d163 TK-10168: RW image re-attach — 5 DRAFT products get correct
·
back to Designerwallcoverings
·
romo-rolls: resume-state artifacts from Sold-Per-Roll build eef8ded →