diff --git a/src/webui/www/private/scripts/prop-trackers.js b/src/webui/www/private/scripts/prop-trackers.js index 195fb62b7..9a9c293f5 100644 --- a/src/webui/www/private/scripts/prop-trackers.js +++ b/src/webui/www/private/scripts/prop-trackers.js @@ -180,14 +180,10 @@ window.qBittorrent.PropTrackers ??= (() => { const addTrackerFN = () => { const selectedTorrents = torrentsTable.selectedRowsIds(); if (current_hash.length === 0) - { return; - } if (selectedTorrents.length !== 0) - { current_hash = selectedTorrents.map(encodeURIComponent).join("|"); - } new MochaUI.Window({ id: "trackersPage", @@ -237,14 +233,10 @@ window.qBittorrent.PropTrackers ??= (() => { const removeTrackerFN = (element) => { const selectedTorrents = torrentsTable.selectedRowsIds(); if (current_hash.length === 0) - { return; - } if (selectedTorrents.length !== 0) - { current_hash = selectedTorrents.map(encodeURIComponent).join("|"); - } fetch("api/v2/torrents/removeTrackers", { method: "POST",