fix(files): empty folder pending size

Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
This commit is contained in:
skjnldsv 2024-07-31 17:44:24 +02:00 committed by nextcloud-command
parent 29661b045c
commit 57ab6e1180
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