mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 13:23:34 -07:00
WebUI: fix Tag counter counting wrong
Related: https://github.com/qbittorrent/qBittorrent/pull/22103/files/73e9116d21015542caeb9a3cfd56bfb256ebed9d#r2014898781 PR #22480.
This commit is contained in:
parent
ec7a00af92
commit
d0caa35b39
1 changed files with 8 additions and 4 deletions
|
@ -381,8 +381,10 @@ window.addEventListener("DOMContentLoaded", () => {
|
|||
return false;
|
||||
|
||||
let removed = false;
|
||||
for (const data of categoryMap.values())
|
||||
removed ||= data.torrents.delete(hash);
|
||||
for (const data of categoryMap.values()) {
|
||||
const deleteResult = data.torrents.delete(hash);
|
||||
removed ||= deleteResult;
|
||||
}
|
||||
return removed;
|
||||
};
|
||||
|
||||
|
@ -418,8 +420,10 @@ window.addEventListener("DOMContentLoaded", () => {
|
|||
return false;
|
||||
|
||||
let removed = false;
|
||||
for (const torrents of tagMap.values())
|
||||
removed ||= torrents.delete(hash);
|
||||
for (const torrents of tagMap.values()) {
|
||||
const deleteResult = torrents.delete(hash);
|
||||
removed ||= deleteResult;
|
||||
}
|
||||
return removed;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue