Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

Commit

Permalink
Merge pull request #207 from mgilangjanuar/staging
Browse files Browse the repository at this point in the history
hotfix: upload multiple times
  • Loading branch information
mgilangjanuar authored Jan 14, 2022
2 parents 8545cd5 + ec0b913 commit 25078a9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion web/src/pages/dashboard/components/Upload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ const Upload: React.FC<Props> = ({ dataFileList: [fileList, setFileList], parent
await uploadPart(0)
const others = Array.from(Array(parts).keys()).slice(1, parts - 1)
await Promise.all(others.map(async i => await uploadPart(i)))
await uploadPart(parts - 1)
if (parts - 1 > 0) {
await uploadPart(parts - 1)
}
}

}))
Expand Down

0 comments on commit 25078a9

Please sign in to comment.