Browse Source

Always set Web UI row id as a string

This helps ensure consistent behavior when performing rowId comparisons against strings.
adaptive-webui-19844
Thomas Piccirello 4 years ago
parent
commit
8b94642ab1
  1. 3
      src/webui/www/private/scripts/dynamicTable.js

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

@ -617,7 +617,8 @@ window.qBittorrent.DynamicTable = (function() {
onSelectedRowChanged: function() {}, onSelectedRowChanged: function() {},
updateRowData: function(data) { updateRowData: function(data) {
const rowId = data['rowId']; // ensure rowId is a string
const rowId = `${data['rowId']}`;
let row; let row;
if (!this.rows.has(rowId)) { if (!this.rows.has(rowId)) {

Loading…
Cancel
Save