From 1382105b037ee5a74f3739362dacece837005b20 Mon Sep 17 00:00:00 2001 From: nd0ut Date: Tue, 20 Feb 2024 13:31:41 +0300 Subject: [PATCH] fix: set `cdnUrlModifers` default to empty string after file upload --- blocks/FileItem/FileItem.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/blocks/FileItem/FileItem.js b/blocks/FileItem/FileItem.js index ef6eef1fb..1b97ed5bd 100644 --- a/blocks/FileItem/FileItem.js +++ b/blocks/FileItem/FileItem.js @@ -390,6 +390,7 @@ export class FileItem extends UploaderBlock { return uploadFile(fileInput, uploadClientOptions); }; + /** @type {import('@uploadcare/upload-client').UploadcareFile} */ let fileInfo = await this.$['*uploadQueue'].add(uploadTask); entry.setMultipleValues({ fileInfo, @@ -400,6 +401,7 @@ export class FileItem extends UploaderBlock { mimeType: fileInfo.contentInfo?.mime?.mime ?? fileInfo.mimeType, uuid: fileInfo.uuid, cdnUrl: fileInfo.cdnUrl, + cdnUrlModifiers: '', uploadProgress: 100, });