renderer/Document: default to filename if file has no comment #74

Closed
helene wants to merge 1 commit from helene/FoundKey:fix/ap-attachment-names into main

View file

@ -5,5 +5,5 @@ export default (file: DriveFile) => ({
type: 'Document', type: 'Document',
mediaType: file.type, mediaType: file.type,
url: DriveFiles.getPublicUrl(file), url: DriveFiles.getPublicUrl(file),
name: file.comment, name: file.comment || file.name,
}); });