mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-01 11:56:48 +01:00
fix enumProvider not getting scope
This commit is contained in:
parent
91ffd141ef
commit
c213a64340
@ -1078,8 +1078,8 @@ export function initDefaultSlashCommands() {
|
||||
description: 'scoped variable or qr label',
|
||||
typeList: [ARGUMENT_TYPE.VARIABLE_NAME, ARGUMENT_TYPE.STRING, ARGUMENT_TYPE.CLOSURE],
|
||||
isRequired: true,
|
||||
enumProvider: () => [
|
||||
...commonEnumProviders.variables('scope')(),
|
||||
enumProvider: (executor, scope) => [
|
||||
...commonEnumProviders.variables('scope')(executor, scope),
|
||||
...(typeof window['qrEnumProviderExecutables'] === 'function') ? window['qrEnumProviderExecutables']() : [],
|
||||
],
|
||||
}),
|
||||
|
Loading…
x
Reference in New Issue
Block a user