mirror of
https://github.com/VueTorrent/VueTorrent.git
synced 2024-11-25 02:45:48 +03:00
fix: size error when deleting torrents under certain conditions (#870)
This commit is contained in:
parent
87038f48b9
commit
09828cb9ab
1 changed files with 3 additions and 2 deletions
|
@ -23,8 +23,9 @@ export default {
|
|||
getTorrentCountString: (state: StoreState, getters: any) => () => {
|
||||
if (state.selected_torrents.length) {
|
||||
let selectedSize = state.selected_torrents
|
||||
.map(hash => getters.getTorrent(hash))
|
||||
.map(torrent => torrent.size | 0)
|
||||
.map(getters.getTorrent)
|
||||
.filter(torrent => torrent !== undefined)
|
||||
.map(torrent => torrent.size)
|
||||
.reduce((partialSum, newVal) => partialSum + newVal)
|
||||
|
||||
return i18n
|
||||
|
|
Loading…
Reference in a new issue