From 8b94642ab17a195a684b035bdc4b140d951c91a7 Mon Sep 17 00:00:00 2001 From: Thomas Piccirello Date: Fri, 9 Jul 2021 21:44:02 -0700 Subject: [PATCH] Always set Web UI row id as a string This helps ensure consistent behavior when performing rowId comparisons against strings. --- src/webui/www/private/scripts/dynamicTable.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/webui/www/private/scripts/dynamicTable.js b/src/webui/www/private/scripts/dynamicTable.js index 37519058e..12be836b4 100644 --- a/src/webui/www/private/scripts/dynamicTable.js +++ b/src/webui/www/private/scripts/dynamicTable.js @@ -617,7 +617,8 @@ window.qBittorrent.DynamicTable = (function() { onSelectedRowChanged: function() {}, updateRowData: function(data) { - const rowId = data['rowId']; + // ensure rowId is a string + const rowId = `${data['rowId']}`; let row; if (!this.rows.has(rowId)) {