WebUI: iterate over own properties only

This commit is contained in:
Chocobo1 2024-05-08 15:43:02 +08:00
parent b07afa3ea9
commit 64dfb7e122
No known key found for this signature in database
GPG key ID: 210D9C873253A68C
9 changed files with 38 additions and 5 deletions

View file

@ -672,8 +672,11 @@ window.qBittorrent.DynamicTable = (function() {
row = this.rows.get(rowId);
row["data"] = data;
for (const x in data)
for (const x in data) {
if (!Object.hasOwn(data, x))
continue;
row["full_data"][x] = data[x];
}
},
getFilteredAndSortedRows: function() {