mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 22:18:05 -06:00
WebUI: fix Tag counter counting wrong
Related: 73e9116d21 (r2014898781)
PR #22480.
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user