From 181b028b09dfe633a5d337055cd986b58638dd82 Mon Sep 17 00:00:00 2001 From: Nicolas-micuda-becker <155229215+Nicolas-micuda-becker@users.noreply.github.com> Date: Sat, 28 Mar 2026 22:25:44 +0100 Subject: [PATCH] fix(web): keep upload totals stable when dismissing items (#27247) (#27354) * fix(web): keep upload totals stable when dismissing items (#27247) * chore: remove package-lock.json --------- Co-authored-by: bwees --- web/src/lib/stores/upload.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/web/src/lib/stores/upload.ts b/web/src/lib/stores/upload.ts index b36a2e5e70..46eb5f1623 100644 --- a/web/src/lib/stores/upload.ts +++ b/web/src/lib/stores/upload.ts @@ -85,11 +85,6 @@ function createUploadStore() { if (assetToRemove) { stats.update((stats) => { switch (assetToRemove.state) { - case UploadState.DONE: { - stats.success--; - break; - } - case UploadState.DUPLICATED: { stats.duplicates--; break; @@ -99,9 +94,12 @@ function createUploadStore() { stats.errors--; break; } + + case UploadState.DONE: { + break; + } } - stats.total--; return stats; }); }