mirror of
https://github.com/nextcloud/server.git
synced 2026-06-13 10:40:40 -04:00
Merge pull request #46947 from nextcloud/backport/46928/stable28
This commit is contained in:
commit
807bd9a2a0
3 changed files with 5 additions and 5 deletions
|
|
@ -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 {}
|
||||
}
|
||||
|
||||
|
|
|
|||
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