aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/src
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:42:09 +0000
commit670fa2a7e059e3719d426d5f01ea4f8e10011f45 (patch)
tree7ee7322ceb10f247c61252ad2d38ae680fb8363c /apps/files/src
parent09bb34e83a368ee02290155277c54fff6a54ae82 (diff)
downloadnextcloud-server-670fa2a7e059e3719d426d5f01ea4f8e10011f45.tar.gz
nextcloud-server-670fa2a7e059e3719d426d5f01ea4f8e10011f45.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/files/src')
-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 9303c03951a..e93b8882be0 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 {}
}