diff --git a/index.html b/index.html index 101f711..a17ab3a 100644 --- a/index.html +++ b/index.html @@ -456,17 +456,7 @@ function render(items) { const grid = document.getElementById("grid"); const stats = document.getElementById("stats"); - const totals = items.reduce((acc, item) => { - const t = item.totals || {}; - acc.count += 1; - acc.soll += t.soll ?? 0; - return acc; - }, { count: 0, soll: 0 }); - - stats.innerHTML = ` -
Artikel
${fmt(totals.count)}
-
Bestand gesamt
${fmt(totals.soll)}
- `; + stats.innerHTML = ""; if (!items.length) { grid.innerHTML = `
Keine Treffer. (Suchbegriff anpassen)
`;