File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
components/Editor/Attachments Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -202,7 +202,9 @@ export default {
202202 if (attachment .xNcHasPreview ) {
203203 return generateUrl (` /core/preview?fileId=${ attachment .xNcFileId } &x=100&y=100&a=0` )
204204 }
205- return attachment .formatType ? OC .MimeType .getIconUrl (attachment .formatType ) : null
205+ return attachment .formatType
206+ ? OC .MimeType .getIconUrl (attachment .formatType )
207+ : OC .MimeType .getIconUrl (' folder' )
206208 },
207209 getBaseName (name ) {
208210 return name .split (' /' ).pop ()
Original file line number Diff line number Diff line change @@ -524,7 +524,9 @@ export default {
524524 if (attachment .xNcHasPreview ) {
525525 return generateUrl (` /core/preview?fileId=${ attachment .xNcFileId } &x=100&y=100&a=0` )
526526 }
527- return attachment .formatType ? OC .MimeType .getIconUrl (attachment .formatType ) : null
527+ return attachment .formatType
528+ ? OC .MimeType .getIconUrl (attachment .formatType )
529+ : OC .MimeType .getIconUrl (' folder' )
528530 },
529531 acceptAttachmentsModal () {
530532 if (! this .doNotShare ) {
You can’t perform that action at this time.
0 commit comments