fix oops in web client torrent filtering
This commit is contained in:
parent
69e5b265a4
commit
f436d742a2
|
@ -395,7 +395,9 @@ export class Torrent extends EventTarget {
|
|||
if (pass) {
|
||||
// pass if this torrent has any of these labels
|
||||
const torrent_labels = this.getLabels();
|
||||
pass = labels.some((label) => torrent_labels.includes(label));
|
||||
if (torrent_labels.length > 0) {
|
||||
pass = labels.some((label) => torrent_labels.includes(label));
|
||||
}
|
||||
}
|
||||
|
||||
// maybe filter by tracker...
|
||||
|
|
Loading…
Reference in New Issue