1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-11 07:18:08 +00:00

Always set Web UI row id as a string

This helps ensure consistent behavior when performing rowId comparisons against strings.
This commit is contained in:
Thomas Piccirello 2021-07-09 21:44:02 -07:00
parent d3497148c5
commit 8b94642ab1

View File

@ -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)) {