mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-01-12 18:24:58 +08:00
Simplify initialization statement
This commit is contained in:
parent
bdc03b1c75
commit
4dbf6af733
@ -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…
Reference in New Issue
Block a user