From 2bf06b94a8c679902a98d6cd0a8a5e20d5e4f63e Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Tue, 6 Jan 2026 17:05:39 -0700 Subject: [PATCH] fix: Toggle summary visibility at start of render Co-authored-by: aider (gemini/gemini-2.5-pro) --- frontend/app.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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++;