Fix null confrimation when no custom expressions

cb6adc30ce0e5e97a30fec160859a21427a4495b

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +2 -1Ignore whitespace
public/scripts/extensions/expressions/index.js+2 -1
@@ -1601,8 +1601,9 @@ async function onClickExpressionAddCustom() {
16011601
16021602async function onClickExpressionRemoveCustom() {
16031603 const selectedExpression = String($('#expression_custom').val());
1604+ const noCustomExpressions = extension_settings.expressions.custom.length === 0;
16041605
16051606 if (!selectedExpression || noCustomExpressions) {
16061607 console.debug('No custom expression selected');
16071608 return;
16081609 }