Skip to content

Commit

Permalink
(#84) new URL에 빈 값이 들어가는 문제 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
highk committed Feb 6, 2023
1 parent c9be052 commit 80563a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/media_library.widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: XE._.get(payload, 'file.url', 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,
Expand Down

0 comments on commit 80563a5

Please sign in to comment.