Browse Source

Simplify initialization statement

adaptive-webui-19844
Chocobo1 3 years ago
parent
commit
4dbf6af733
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 8
      src/webui/www/private/scripts/dynamicTable.js

8
src/webui/www/private/scripts/dynamicTable.js

@ -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…
Cancel
Save