mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-12-27 08:19:30 +08:00
Simplify initialization statement
This commit is contained in:
parent
bdc03b1c75
commit
4dbf6af733
@ -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];
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user