Merge pull request #11865 from shemanaev/fix/webui-files-rename

WebUI: Fix first row renaming in files tab
This commit is contained in:
Vladimir Golovnev 2020-01-14 07:14:13 +03:00 committed by GitHub
commit 990e451765
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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