Browse Source

WebUI: Fix first row renaming in files tab

Ids started from zero and first row converts to false.
Closes #11826.
adaptive-webui-19844
Denis 5 years ago committed by Denis Shemanaev
parent
commit
a7eb792372
  1. 2
      src/webui/www/private/scripts/prop-files.js

2
src/webui/www/private/scripts/prop-files.js

@ -524,7 +524,7 @@ window.qBittorrent.PropFiles = (function() { @@ -524,7 +524,7 @@ window.qBittorrent.PropFiles = (function() {
const hash = torrentsTable.getCurrentTorrentHash();
if (!hash) return;
const rowId = torrentFilesTable.selectedRowsIds()[0];
if (!rowId) return;
if (rowId === undefined) return;
const row = torrentFilesTable.rows[rowId];
if (!row) return;
const node = torrentFilesTable.getNode(rowId);

Loading…
Cancel
Save