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:
parent
0965d3cbd9
commit
0f3117fca2
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue