Timothy J. Baek há 7 meses atrás
pai
commit
67647c8747
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      src/lib/components/chat/Chat.svelte

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

@@ -829,6 +829,8 @@
 				})
 			);
 		} else {
+			prompt = '';
+
 			// Reset chat input textarea
 			const chatInputContainer = document.getElementById('chat-input-container');
 
@@ -2248,7 +2250,6 @@
 								}}
 								on:submit={async (e) => {
 									if (e.detail) {
-										prompt = '';
 										await tick();
 										submitPrompt(e.detail.replaceAll('\n\n', '\n'));
 									}
@@ -2293,7 +2294,6 @@
 								}}
 								on:submit={async (e) => {
 									if (e.detail) {
-										prompt = '';
 										await tick();
 										submitPrompt(e.detail.replaceAll('\n\n', '\n'));
 									}