renderer/Document: default to filename

Filenames will now be used if the DriveFile instance of the attachment
has no comment set.
This commit is contained in:
Hélène 2022-08-19 17:58:33 +02:00
parent 0965d3cbd9
commit 0f3117fca2
Signed by: helene
GPG key ID: A215F2E9F1589D62

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,
});