From 0971b54f0b38e8abc71a6998140f8b151eac4cd4 Mon Sep 17 00:00:00 2001 From: James Meng <35415298+jamesmengo@users.noreply.github.com> Date: Thu, 16 Jan 2025 11:18:01 -0800 Subject: [PATCH] Remove unnecessary map Co-authored-by: Fran Dios --- packages/theme/src/cli/utilities/theme-uploader.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/theme/src/cli/utilities/theme-uploader.ts b/packages/theme/src/cli/utilities/theme-uploader.ts index a675831172..d2e9c6e2c7 100644 --- a/packages/theme/src/cli/utilities/theme-uploader.ts +++ b/packages/theme/src/cli/utilities/theme-uploader.ts @@ -432,7 +432,7 @@ async function handleFailedUploads( function reportFailedUploads(uploadResults: Map) { for (const [key, result] of uploadResults.entries()) { if (!result.success) { - const errorMessage = result.errors?.asset?.map((err) => err).join('\n') ?? 'File upload failed' + const errorMessage = result.errors?.asset?.join('\n') ?? 'File upload failed' renderThrownError(key, new Error(errorMessage)) } }