fileinfo: Fix bug with non-torrent files
This commit is contained in:
parent
ef811a7fe4
commit
b3da97cf36
1 changed files with 3 additions and 1 deletions
|
@ -80,7 +80,9 @@ const Fileinfo = {
|
||||||
])
|
])
|
||||||
}))
|
}))
|
||||||
: null,
|
: null,
|
||||||
vnode.attrs.trim && vnode.attrs.file.meta.torrent.files.length > 4
|
vnode.attrs.trim
|
||||||
|
&& vnode.attrs.file.meta.torrent
|
||||||
|
&& vnode.attrs.file.meta.torrent.files.length > 4
|
||||||
? m('div.trimmed', '...' + vnode.attrs.file.meta.torrent.files.length + ' files...')
|
? m('div.trimmed', '...' + vnode.attrs.file.meta.torrent.files.length + ' files...')
|
||||||
: null,
|
: null,
|
||||||
])
|
])
|
||||||
|
|
Loading…
Reference in a new issue