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 => `
@@ -136,11 +141,6 @@ function render(){ }); } catch {} - const summaryEl = document.getElementById('summary'); - if (summaryEl) { - summaryEl.classList.toggle('hidden', items.length === 0); - } - const c = {queued:0,uploading:0,done:0,dup:0,err:0}; for(const it of items){ if(['queued','checking'].includes(it.status)) c.queued++;