renderer/Document: default to filename if file has no comment #74
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