summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorskjnldsv <skjnldsv@protonmail.com>2024-07-31 17:44:24 +0200
committernextcloud-command <nextcloud-command@users.noreply.github.com>2024-08-01 12:41:54 +0000
commite1f55daa3eaa44c938b815a659b1463ce2820895 (patch)
treecc01469110139f2cf9cd6150e408f7305f7449f7 /apps
parent0674f6316e03706f3b5070b73d8ba5907c4503f0 (diff)
downloadnextcloud-server-e1f55daa3eaa44c938b815a659b1463ce2820895.tar.gz
nextcloud-server-e1f55daa3eaa44c938b815a659b1463ce2820895.zip
fix(files): empty folder pending size
Signed-off-by: skjnldsv <skjnldsv@protonmail.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Diffstat (limited to 'apps')
-rw-r--r--apps/files/src/components/FileEntry.vue4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/src/components/FileEntry.vue b/apps/files/src/components/FileEntry.vue
index f1cccf669e5..b3929ebb10e 100644
--- a/apps/files/src/components/FileEntry.vue
+++ b/apps/files/src/components/FileEntry.vue
@@ -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 {}
}