WebUI: Fix first row renaming in files tab

Ids started from zero and first row converts to false.
Closes #11826.
This commit is contained in:
Denis 2020-01-11 22:24:37 +03:00 committed by sledgehammer999
parent e75a65d798
commit b083bd78e7
No known key found for this signature in database
GPG key ID: 6E4A2D025B7CC9A2

View file

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