Skip to content

Commit

Permalink
fix(files): empty folder pending size
Browse files Browse the repository at this point in the history
Signed-off-by: skjnldsv <[email protected]>

Signed-off-by: nextcloud-command <[email protected]>

[skip ci]
  • Loading branch information
skjnldsv authored and backportbot[bot] committed Aug 1, 2024
1 parent 0d16ba6 commit a253df1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/files/src/components/FileEntry.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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 {}
}

Expand Down

0 comments on commit a253df1

Please sign in to comment.