fileinfo: Fix bug with non-torrent files

This commit is contained in:
Jonatan Nilsson 2019-10-03 14:34:12 +00:00
parent ef811a7fe4
commit b3da97cf36

View file

@ -80,7 +80,9 @@ const Fileinfo = {
])
}))
: 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...')
: null,
])