Fix /inject id not being required, cause undefined
| @@ -2136,8 +2136,8 @@ function injectCallback(args, value) { | |||
| 2136 | 'assistant': extension_prompt_roles.ASSISTANT, | 2136 | 'assistant': extension_prompt_roles.ASSISTANT, |
| 2137 | }; | 2137 | }; |
| 2138 | 2138 | ||
| 2139 | const id = String(args?.id); | 2139 | const id = String(args?.id ?? ''); |
| 2140 | const ephemeral = isTrueBoolean(String(args?.ephemeral)); | 2140 | const ephemeral = isTrueBoolean(String(args?.ephemeral ?? '')); |
| 2141 | 2141 | ||
| 2142 | if (!id) { | 2142 | if (!id) { |
| 2143 | console.warn('WARN: No ID provided for /inject command'); | 2143 | console.warn('WARN: No ID provided for /inject command'); |