mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 15:37:26 -06:00
WebUI: iterate over own properties only
This commit is contained in:
@@ -80,8 +80,10 @@ window.qBittorrent.PropPeers = (function() {
|
||||
syncTorrentPeersLastResponseId = response["rid"];
|
||||
if (response["peers"]) {
|
||||
for (const key in response["peers"]) {
|
||||
response["peers"][key]["rowId"] = key;
|
||||
if (!Object.hasOwn(response["peers"], key))
|
||||
continue;
|
||||
|
||||
response["peers"][key]["rowId"] = key;
|
||||
torrentPeersTable.updateRowData(response["peers"][key]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user