From efec2374b8518ce9909e4ecdee1e751257536f7c Mon Sep 17 00:00:00 2001 From: Mikael Finstad Date: Fri, 17 Jan 2025 14:20:55 +0800 Subject: [PATCH] @uppy/aws-s3: remove console.error (#5607) Update HTTPCommunicationQueue.ts https://github.com/transloadit/uppy/pull/5602#discussion_r1916248098 --- packages/@uppy/aws-s3/src/HTTPCommunicationQueue.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/@uppy/aws-s3/src/HTTPCommunicationQueue.ts b/packages/@uppy/aws-s3/src/HTTPCommunicationQueue.ts index bfcc9035a2..76c62c0acf 100644 --- a/packages/@uppy/aws-s3/src/HTTPCommunicationQueue.ts +++ b/packages/@uppy/aws-s3/src/HTTPCommunicationQueue.ts @@ -276,12 +276,9 @@ export class HTTPCommunicationQueue { signal, }).abortOn(signal)) as unknown as B // todo this doesn't make sense + // Note: `fields.key` is not returned by old Companion versions. + // See https://github.com/transloadit/uppy/pull/5602 const key = fields?.key - if (!key) { - console.error( - 'Expected `fields.key` to be returend but the backend/Companion', - ) - } this.#setS3MultipartState(file, { key: key! }) return {