Merge pull request #46947 from nextcloud/backport/46928/stable28

This commit is contained in:
John Molakvoæ 2024-08-01 16:40:15 +02:00 committed by GitHub
commit 807bd9a2a0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 5 deletions

View file

@ -202,7 +202,7 @@ export default defineComponent({
size() {
const size = this.source.size
if (!size || size < 0) {
if (size === undefined || isNaN(size) || size < 0) {
return this.t('files', 'Pending')
}
return formatFileSize(size, true)
@ -212,7 +212,7 @@ export default defineComponent({
const maxOpacitySize = 10 * 1024 * 1024
const size = this.source.size
if (!size || isNaN(size) || size < 0) {
if (size === undefined || isNaN(size) || size < 0) {
return {}
}

4
dist/files-main.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long