fix: avoid console warning opening the upload dialog
Massimo Melina committed
Jun 10, 2026 at 19:20 UTC
1d932d207ac21bbd9d9582b5cff058ecd8fa7a50
1 file changed
+1
-1
frontend/src/uploadQueue.ts
+1
-1
@@ -77,7 +77,7 @@ setInterval(() => {
77
if (uploadState.paused)
78
recentSpeedSamples.length = 0
79
uploadState.speed = _.mean(recentSpeedSamples)
80
- uploadState.eta = left / uploadState.speed
80
+ uploadState.eta = left / uploadState.speed || 0
81
}, 2_000)
82
83
let currentReq: XMLHttpRequest | undefined