Simplify initialization statement

This commit is contained in:
Chocobo1 2021-07-07 13:16:19 +08:00
parent bdc03b1c75
commit 4dbf6af733
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C

View File

@ -621,16 +621,16 @@ window.qBittorrent.DynamicTable = (function() {
let row;
if (!this.rows.has(rowId)) {
row = {};
row = {
'full_data': {},
'rowId': rowId
};
this.rows.set(rowId, row);
row['full_data'] = {};
row['rowId'] = rowId;
}
else
row = this.rows.get(rowId);
row['data'] = data;
for (const x in data)
row['full_data'][x] = data[x];
},