mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-27 11:49:01 +03:00
Fix value comparison. Closes #7081.
`category` could be 'undefined'.
Fixup of a7f4ea8b18
.
This commit is contained in:
parent
3d970399d4
commit
448d937c15
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue