Compare commits

...

1 commit

Author SHA1 Message Date
Hélène 0f3117fca2
renderer/Document: default to filename
Filenames will now be used if the DriveFile instance of the attachment
has no comment set.
2022-08-19 17:58:33 +02:00

View file

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