Fix /proxy command to return a name

This commit is contained in:
Cohee 2024-04-14 21:31:59 +03:00
parent f19d6ac0ff
commit 1e088ac124
1 changed files with 1 additions and 2 deletions

View File

@ -4171,8 +4171,7 @@ $('#delete_proxy').on('click', async function () {
function runProxyCallback(_, value) {
if (!value) {
toastr.warning('Proxy preset name is required');
return '';
return selected_proxy?.name || '';
}
const proxyNames = proxies.map(preset => preset.name);