mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-11 15:56:17 -07:00
Simplify initialization statement
This commit is contained in:
parent
bdc03b1c75
commit
4dbf6af733
1 changed files with 4 additions and 4 deletions
|
@ -621,16 +621,16 @@ window.qBittorrent.DynamicTable = (function() {
|
||||||
let row;
|
let row;
|
||||||
|
|
||||||
if (!this.rows.has(rowId)) {
|
if (!this.rows.has(rowId)) {
|
||||||
row = {};
|
row = {
|
||||||
|
'full_data': {},
|
||||||
|
'rowId': rowId
|
||||||
|
};
|
||||||
this.rows.set(rowId, row);
|
this.rows.set(rowId, row);
|
||||||
row['full_data'] = {};
|
|
||||||
row['rowId'] = rowId;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
row = this.rows.get(rowId);
|
row = this.rows.get(rowId);
|
||||||
|
|
||||||
row['data'] = data;
|
row['data'] = data;
|
||||||
|
|
||||||
for (const x in data)
|
for (const x in data)
|
||||||
row['full_data'][x] = data[x];
|
row['full_data'][x] = data[x];
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue