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

View File

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