Merge pull request #46928 from nextcloud/fix/files-pending-size

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

View file

@ -184,7 +184,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)
@ -194,7 +194,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