renderer/Document: default to filename
Some checks failed
ci/woodpecker/pr/lint-backend Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/lint-client Pipeline failed
ci/woodpecker/pr/test Pipeline failed

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