Fix torrent sort

This commit is contained in:
John Furrow
2016-06-12 01:00:00 -07:00
parent bff1bfb9f1
commit 31daae806c
7 changed files with 10 additions and 7 deletions
+1 -1
View File
@@ -229,7 +229,7 @@ class TorrentStoreClass extends BaseStore {
sortTorrents(torrents) {
let torrentsSort = TorrentFilterStore.getTorrentsSort();
this.torrents = torrents;
this.torrents = torrents || this.torrents;
// Convert torrents hash to array and sort it.
this.sortedTorrents = sortTorrents(this.torrents,