diff options
author | skjnldsv <skjnldsv@protonmail.com> | 2024-07-31 17:44:24 +0200 |
---|---|---|
committer | nextcloud-command <nextcloud-command@users.noreply.github.com> | 2024-08-01 12:41:54 +0000 |
commit | e1f55daa3eaa44c938b815a659b1463ce2820895 (patch) | |
tree | cc01469110139f2cf9cd6150e408f7305f7449f7 /apps | |
parent | 0674f6316e03706f3b5070b73d8ba5907c4503f0 (diff) | |
download | nextcloud-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.vue | 4 |
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 {} } |