Fix default value for filter argument

2e936e804a2f18f2412c3f52402ac2623ef99ad5

Wolfsblvt <wolfsblvt@gmail.com>

1 files changed, +4 -4Ignore whitespace
public/scripts/extensions/expressions/index.js+4 -4
@@ -4,7 +4,7 @@ import { characters, eventSource, event_types, generateRaw, getRequestHeaders, m
44import { dragElement, isMobile } from '../../RossAscends-mods.js';
55import { getContext, getApiUrl, modules, extension_settings, ModuleWorkerWrapper, doExtrasFetch, renderExtensionTemplateAsync } from '../../extensions.js';
66import { loadMovingUIState, performFuzzySearch, power_user } from '../../power-user.js';
77import { onlyUnique, debounce, getCharaFilename, trimToEndSentence, trimToStartSentence, waitUntilCondition, findChar, isTrueBooleanisFalseBoolean } from '../../utils.js';
88import { hideMutedSprites, selected_group } from '../../group-chats.js';
99import { isJsonSchemaSupported } from '../../textgen-settings.js';
1010import { debounce_timeout } from '../../constants.js';
@@ -689,7 +689,7 @@ async function classifyCallback(/** @type {{api: string?, filter: string?, promp
689689 }
690690
691691 const expressionApi = EXPRESSION_API[api] || extension_settings.expressions.api;
692692 const filterAvailable = isTrueBoolean!isFalseBoolean(filter);
693693
694694 if (!modules.includes('classify') && expressionApi == EXPRESSION_API.extras) {
695695 toastr.warning('Text classification is disabled or not available');
@@ -2303,13 +2303,13 @@ function migrateSettings() {
23032303 SlashCommandParser.addCommandObject(SlashCommand.fromProps({
23042304 name: 'expression-list',
23052305 aliases: ['expressions'],
23062306 /** @type {(args: {return: string, filterAvailablefilter: string}) => Promise<string>} */
23072307 callback: async (args) => {
23082308 let returnType =
23092309 /** @type {import('../../slash-commands/SlashCommandReturnHelper.js').SlashCommandReturnType} */
23102310 (args.return);
23112311
23122312 const list = await getExpressionsList({ filterAvailable: isTrueBoolean!isFalseBoolean(args.filterAvailablefilter) });
23132313
23142314 return await slashCommandReturnHelper.doReturn(returnType ?? 'pipe', list, { objectToStringFunc: list => list.join(', ') });
23152315 },