mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
"acceptsMultiple" should always return array
This commit is contained in:
@ -417,8 +417,8 @@ export class SlashCommandClosure {
|
||||
currentValue.push(value);
|
||||
args[name] = currentValue;
|
||||
} else {
|
||||
// If there is nothing in there, just assign it as singular value, until multiple values are found
|
||||
args[name] = value;
|
||||
// If there is nothing in there, we create an array with that singular value
|
||||
args[name] = [value];
|
||||
}
|
||||
} else {
|
||||
args[name] !== undefined && console.debug(`Named argument assigned multiple times: ${name}`);
|
||||
|
Reference in New Issue
Block a user