[FIX] Crash while displaying the attached image with http on file name (#1401)
This commit is contained in:
parent
1c89501938
commit
f1fcdf7379
|
@ -1,3 +1,3 @@
|
|||
export const formatAttachmentUrl = (attachmentUrl, userId, token, server) => (
|
||||
encodeURI(attachmentUrl.includes('http') ? attachmentUrl : `${ server }${ attachmentUrl }?rc_uid=${ userId }&rc_token=${ token }`)
|
||||
encodeURI(attachmentUrl.startsWith('http') ? attachmentUrl : `${ server }${ attachmentUrl }?rc_uid=${ userId }&rc_token=${ token }`)
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue