diff --git a/src/components/Editor/Attachments/AttachmentsList.vue b/src/components/Editor/Attachments/AttachmentsList.vue index 612631c8c4..0efd173781 100644 --- a/src/components/Editor/Attachments/AttachmentsList.vue +++ b/src/components/Editor/Attachments/AttachmentsList.vue @@ -210,7 +210,9 @@ export default { if (attachment.xNcHasPreview) { return generateUrl(`/core/preview?fileId=${attachment.xNcFileId}&x=100&y=100&a=0`) } - return attachment.formatType ? OC.MimeType.getIconUrl(attachment.formatType) : null + return attachment.formatType + ? OC.MimeType.getIconUrl(attachment.formatType) + : OC.MimeType.getIconUrl('folder') }, getBaseName(name) { return name.split('/').pop() diff --git a/src/views/EditSidebar.vue b/src/views/EditSidebar.vue index 2f3d27f4d4..b6e6ccd778 100644 --- a/src/views/EditSidebar.vue +++ b/src/views/EditSidebar.vue @@ -524,7 +524,9 @@ export default { if (attachment.xNcHasPreview) { return generateUrl(`/core/preview?fileId=${attachment.xNcFileId}&x=100&y=100&a=0`) } - return attachment.formatType ? OC.MimeType.getIconUrl(attachment.formatType) : null + return attachment.formatType + ? OC.MimeType.getIconUrl(attachment.formatType) + : OC.MimeType.getIconUrl('folder') }, acceptAttachmentsModal() { if (!this.doNotShare) {