Browse Source

Fix value comparison. Closes #7081.

`category` could be 'undefined'.
Fixup of a7f4ea8b18.
adaptive-webui-19844
Chocobo1 8 years ago
parent
commit
448d937c15
  1. 2
      src/webui/www/public/scripts/client.js

2
src/webui/www/public/scripts/client.js

@ -184,7 +184,7 @@ window.addEvent('load', function () { @@ -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…
Cancel
Save