diff --git a/frontend/app.js b/frontend/app.js index 1f19e97..6168db2 100644 --- a/frontend/app.js +++ b/frontend/app.js @@ -95,6 +95,11 @@ function addItem(file){ } function render(){ + const summaryEl = document.getElementById('summary'); + if (summaryEl) { + summaryEl.classList.toggle('hidden', items.length === 0); + } + const itemsEl = document.getElementById('items'); itemsEl.innerHTML = items.map(it => `