Timothy Jaeryang Baek 3 months ago
parent
commit
c107a0cbf4
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/lib/components/chat/MessageInput.svelte

+ 2 - 2
src/lib/components/chat/MessageInput.svelte

@@ -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;