mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-02-05 03:14:44 +00:00
Fix value comparison. Closes #7081.
`category` could be 'undefined'. Fixup of a7f4ea8b185b4866134ea396d1bec9ffaf6d16c5.
This commit is contained in:
parent
3d970399d4
commit
448d937c15
@ -184,7 +184,7 @@ window.addEvent('load', function () {
|
||||
|
||||
var addTorrentToCategoryList = function(torrent) {
|
||||
var category = torrent['category'];
|
||||
if (category === null)
|
||||
if (typeof category === 'undefined')
|
||||
return false;
|
||||
if (category.length === 0) { // Empty category
|
||||
removeTorrentFromCategoryList(torrent['hash']);
|
||||
|
Loading…
x
Reference in New Issue
Block a user