diff --git a/src/webui/www/private/scripts/dynamicTable.js b/src/webui/www/private/scripts/dynamicTable.js index 2ff251804..c6674ca28 100644 --- a/src/webui/www/private/scripts/dynamicTable.js +++ b/src/webui/www/private/scripts/dynamicTable.js @@ -827,13 +827,11 @@ window.qBittorrent.DynamicTable ??= (() => { removeRow: function(rowId) { this.selectedRows.erase(rowId); - const tr = this.getTrByRowId(rowId); - if (tr !== null) { - tr.destroy(); + if (this.rows.has(rowId)) this.rows.erase(rowId); - return true; - } - return false; + const tr = this.getTrByRowId(rowId); + if (tr !== null) + tr.destroy(); }, clear: function() {