From 5dc66cb3d5dd2870a43dd3682a82c64c09ba9285 Mon Sep 17 00:00:00 2001 From: Ramires Viana <59319979+ramiresviana@users.noreply.github.com> Date: Tue, 5 Aug 2025 18:17:43 -0300 Subject: [PATCH] calculate empty files and folders --- frontend/src/stores/upload.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/stores/upload.ts b/frontend/src/stores/upload.ts index 023b3808..17a29f70 100644 --- a/frontend/src/stores/upload.ts +++ b/frontend/src/stores/upload.ts @@ -51,7 +51,7 @@ export const useUploadStore = defineStore("upload", () => { file, overwrite, type, - totalBytes: file?.size ?? 0, + totalBytes: file?.size || 1, sentBytes: 0, // Stores rapidly changing sent bytes value without causing component re-renders rawProgress: markRaw({