mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix null confrimation when no custom expressions
This commit is contained in:
@ -1601,8 +1601,9 @@ async function onClickExpressionAddCustom() {
|
||||
|
||||
async function onClickExpressionRemoveCustom() {
|
||||
const selectedExpression = String($('#expression_custom').val());
|
||||
const noCustomExpressions = extension_settings.expressions.custom.length === 0;
|
||||
|
||||
if (!selectedExpression) {
|
||||
if (!selectedExpression || noCustomExpressions) {
|
||||
console.debug('No custom expression selected');
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user