From e999725e46aa3fb20d8514e54f503061d20591ad Mon Sep 17 00:00:00 2001 From: Kevin Haube Date: Wed, 14 Feb 2024 12:11:10 -0500 Subject: [PATCH] fix(uploads): Fix file upload async cutoff (#381) --- src/services/ui/src/api/submissionService.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/ui/src/api/submissionService.ts b/src/services/ui/src/api/submissionService.ts index 4971dcccb..107335abf 100644 --- a/src/services/ui/src/api/submissionService.ts +++ b/src/services/ui/src/api/submissionService.ts @@ -162,8 +162,8 @@ export const submit = async >({ })); // Upload attachments await Promise.all( - uploadRecipes.map(({ url, data }) => { - fetch(url, { + uploadRecipes.map(async ({ url, data }) => { + await fetch(url, { body: data, method: "PUT", });