From 625999e541dfe609f81bf262724326817ce4359b Mon Sep 17 00:00:00 2001 From: gator Date: Sun, 16 Aug 2026 14:46:20 +0000 Subject: [PATCH] catalog: the 3D chip on a card was also a literal Same problem as the detail page: every card claimed 3D whether or not model_3d was set. Derive it. --- assets/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/app.js b/assets/app.js index 42cbfad..ce86833 100644 --- a/assets/app.js +++ b/assets/app.js @@ -38,7 +38,7 @@ function card(p) {
${p.mpn || p.id}
${p.when_to_use || p.summary || ''}
PKG ${p.package || (p.series && p.series.package) || '—'} - 3D ✓${p.stock ? `STK ${(p.stock / 1000).toFixed(0)}k` : ''}
`; + ${p.model_3d ? '3D ✓' : ''}${p.stock ? `STK ${(p.stock / 1000).toFixed(0)}k` : ''}`; return el; } async function render() {