From afc9207ddbd26ecb3c6cdb646d97cee64338da14 Mon Sep 17 00:00:00 2001 From: KT Park Date: Mon, 16 May 2022 12:49:45 +0900 Subject: [PATCH] =?UTF-8?q?(#84)=20payload.url=EC=9D=B4=20=EC=97=86?= =?UTF-8?q?=EB=8A=94=EA=B2=BD=EC=9A=B0=20new=20URL=20=EC=82=AC=EC=9A=A9?= =?UTF-8?q?=EC=95=88=ED=95=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/js/media_library.widget.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/media_library.widget.js b/assets/js/media_library.widget.js index a50d7ce..73b080a 100644 --- a/assets/js/media_library.widget.js +++ b/assets/js/media_library.widget.js @@ -161,7 +161,7 @@ window.$(function ($) { _normalizeFileData: function (payload) { var data = { title: payload.title || payload.clientname, - imageUrl: new URL(XE._.get(payload, 'file.url', payload.url)).pathname, + imageUrl: payload.url ? new URL(XE._.get(payload, 'file.url', payload.url)).pathname : undefined, mediaId: (payload.file_id) ? XE._.get(payload, 'id', '') : '', fileId: XE._.get(payload, 'file_id', payload.id || ''), size: payload.size,