WebUI: Fix category save path

PR #19008.
This commit is contained in:
Raymond Ha 2023-05-26 01:52:37 -07:00 committed by GitHub
parent 3fb4e4d293
commit a35dbc6df7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -125,7 +125,7 @@ window.qBittorrent.Download = (function() {
const category = categories[categoryName]; const category = categories[categoryName];
let savePath = defaultSavePath; let savePath = defaultSavePath;
if (category !== undefined) if (category !== undefined)
savePath = (category['savePath'] !== "") ? category['savePath'] : (defaultSavePath + categoryName); savePath = (category['savePath'] !== "") ? category['savePath'] : `${defaultSavePath}/${categoryName}`;
$('savepath').value = savePath; $('savepath').value = savePath;
} }
} }