mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix /inject id not being required, cause undefined
This commit is contained in:
@ -2136,8 +2136,8 @@ function injectCallback(args, value) {
|
|||||||
'assistant': extension_prompt_roles.ASSISTANT,
|
'assistant': extension_prompt_roles.ASSISTANT,
|
||||||
};
|
};
|
||||||
|
|
||||||
const id = String(args?.id);
|
const id = String(args?.id ?? '');
|
||||||
const ephemeral = isTrueBoolean(String(args?.ephemeral));
|
const ephemeral = isTrueBoolean(String(args?.ephemeral ?? ''));
|
||||||
|
|
||||||
if (!id) {
|
if (!id) {
|
||||||
console.warn('WARN: No ID provided for /inject command');
|
console.warn('WARN: No ID provided for /inject command');
|
||||||
|
Reference in New Issue
Block a user