From 18a00d2b74901b81b1ad63fd8241d6a3710b8da1 Mon Sep 17 00:00:00 2001 From: nshenderov Date: Wed, 13 Nov 2024 12:51:08 +0300 Subject: [PATCH] fix: insert multiple assets at once via media library #180 --- admin/src/Input/components/MediaLib.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/admin/src/Input/components/MediaLib.js b/admin/src/Input/components/MediaLib.js index 50c5987..ba38466 100644 --- a/admin/src/Input/components/MediaLib.js +++ b/admin/src/Input/components/MediaLib.js @@ -15,17 +15,17 @@ export const MediaLib = ({ isOpen = false, onToggle = () => {}, editor }) => { let set = ''; let keys = Object.keys(formats).sort((a, b) => formats[a].width - formats[b].width); keys.map((k) => (set += prefixFileUrlWithBackendUrl(formats[k].url) +` ${formats[k].width}w,`)); - newValue = `${alt}`; + newValue += `${alt}`; } else { - newValue = `${alt}`; + newValue += `${alt}`; } } else if (mime.includes('video')) { - newValue = ` + newValue += ` `; } else { - newValue = `${name || 'Open document'}`; + newValue += `${name || 'Open document'}`; } });