Skip to content

Commit

Permalink
fix(uploads): Fix file upload async cutoff (#381)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Haube authored Feb 14, 2024
1 parent 91ec0bb commit e999725
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/ui/src/api/submissionService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ export const submit = async <T extends Record<string, unknown>>({
}));
// Upload attachments
await Promise.all(
uploadRecipes.map(({ url, data }) => {
fetch(url, {
uploadRecipes.map(async ({ url, data }) => {
await fetch(url, {
body: data,
method: "PUT",
});
Expand Down

0 comments on commit e999725

Please sign in to comment.