Fix value comparison. Closes #7081.

`category` could be 'undefined'.
Fixup of a7f4ea8b18.
This commit is contained in:
Chocobo1 2017-07-09 22:25:29 +08:00
parent 3d970399d4
commit 448d937c15

View file

@ -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']);