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.
This commit is contained in:
parent
0ceb862eeb
commit
625999e541
1 changed files with 1 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ function card(p) {
|
||||||
<div class="mpn">${p.mpn || p.id}</div>
|
<div class="mpn">${p.mpn || p.id}</div>
|
||||||
<div class="sm">${p.when_to_use || p.summary || ''}</div>
|
<div class="sm">${p.when_to_use || p.summary || ''}</div>
|
||||||
<div class="meta"><span><b>PKG</b> ${p.package || (p.series && p.series.package) || '—'}</span>
|
<div class="meta"><span><b>PKG</b> ${p.package || (p.series && p.series.package) || '—'}</span>
|
||||||
<span><b>3D</b> ✓</span>${p.stock ? `<span><b>STK</b> ${(p.stock / 1000).toFixed(0)}k</span>` : ''}</div></div>`;
|
${p.model_3d ? '<span><b>3D</b> ✓</span>' : ''}${p.stock ? `<span><b>STK</b> ${(p.stock / 1000).toFixed(0)}k</span>` : ''}</div></div>`;
|
||||||
return el;
|
return el;
|
||||||
}
|
}
|
||||||
async function render() {
|
async function render() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue