Skip to content

Commit

Permalink
const
Browse files Browse the repository at this point in the history
  • Loading branch information
sshane committed Jul 25, 2024
1 parent f3eb04b commit 5e4034a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/actions/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ export function doUpload(dongleId, paths, urls) {

// only if all file names for a segment file type failed
let failedFiltered = [];
for (let f of failed) {
for (const f of failed) {
let failedCnt = failed.filter((p) => pathToFileName(dongleId, p) === pathToFileName(dongleId, f)).length;
let requestedCnt = paths.filter((p) => pathToFileName(dongleId, p) === pathToFileName(dongleId, f)).length;
if (failedCnt >= requestedCnt) {
Expand Down

0 comments on commit 5e4034a

Please sign in to comment.