Browse Source

Add necessary curly brackets

adaptive-webui-19844
Chocobo1 4 years ago
parent
commit
af85a8a340
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 7
      src/webui/www/private/scripts/dynamicTable.js

7
src/webui/www/private/scripts/dynamicTable.js

@ -1287,13 +1287,15 @@ window.qBittorrent.DynamicTable = (function() { @@ -1287,13 +1287,15 @@ window.qBittorrent.DynamicTable = (function() {
return false;
break; // do nothing
default:
default: {
let rowTags = row['full_data'].tags.split(', ');
rowTags = rowTags.map(function(tag) {
return genHash(tag);
});
if (!rowTags.contains(tagHashInt))
return false;
break;
}
}
}
@ -1305,11 +1307,12 @@ window.qBittorrent.DynamicTable = (function() { @@ -1305,11 +1307,12 @@ window.qBittorrent.DynamicTable = (function() {
if (row['full_data'].trackers_count !== 0)
return false;
break;
default:
default: {
const tracker = trackerList.get(trackerHashInt);
if (tracker && !tracker.torrents.includes(row['full_data'].rowId))
return false;
break;
}
}
if ((filterTerms !== undefined) && (filterTerms !== null)

Loading…
Cancel
Save