From 4dbf6af7338f6a7929a54c79fed0d02592e364aa Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Wed, 7 Jul 2021 13:16:19 +0800 Subject: [PATCH] Simplify initialization statement --- src/webui/www/private/scripts/dynamicTable.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/webui/www/private/scripts/dynamicTable.js b/src/webui/www/private/scripts/dynamicTable.js index 98e220f18..37519058e 100644 --- a/src/webui/www/private/scripts/dynamicTable.js +++ b/src/webui/www/private/scripts/dynamicTable.js @@ -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]; },