mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix /proxy command to return a name
This commit is contained in:
@ -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);
|
||||||
|
Reference in New Issue
Block a user