|
@@ -362,8 +362,8 @@
|
|
|
text = await textVariableHandler(text || '');
|
|
|
|
|
|
if ($settings?.richTextInput ?? true) {
|
|
|
- chatInputElement.setText(text);
|
|
|
- chatInputElement.focus();
|
|
|
+ chatInputElement?.setText(text);
|
|
|
+ chatInputElement?.focus();
|
|
|
} else {
|
|
|
chatInput.value = text;
|
|
|
prompt = text;
|