mirror of
https://github.com/nextcloud/server.git
synced 2026-06-06 07:13:23 -04:00
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:
parent
29661b045c
commit
57ab6e1180
3 changed files with 5 additions and 5 deletions
|
|
@ -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
4
dist/files-main.js
vendored
File diff suppressed because one or more lines are too long
2
dist/files-main.js.map
vendored
2
dist/files-main.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue