Fix /proxy command to return a name
This commit is contained in:
parent
f19d6ac0ff
commit
1e088ac124
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue