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 <brandonwees@gmail.com>
This commit is contained in:
Nicolas-micuda-becker
2026-03-28 22:25:44 +01:00
committed by GitHub
parent eb20b715e4
commit 181b028b09
+4 -6
View File
@@ -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;
});
}