Skip to content

Commit

Permalink
Updated upload to use Promise.allSettled so that it will try the rema…
Browse files Browse the repository at this point in the history
…ining files even if one fails
  • Loading branch information
Alejandro-Vega committed Nov 8, 2023
1 parent a51c713 commit be0e17d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/DataSubmissions/DataSubmissionUpload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ const DataSubmissionUpload = ({ submitterID, readOnly, onUpload }: Props) => {
});

// Wait for all uploads to finish
await Promise.all(uploadPromises);
await Promise.allSettled(uploadPromises);
onBucketUpload(newBatch._id, uploadResult);
};

Expand Down

0 comments on commit be0e17d

Please sign in to comment.