From c9137edf5a46ab27909e4f3cd7804979e148481c Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Sun, 9 Jun 2024 15:59:33 -0700 Subject: [PATCH] refac --- src/lib/components/chat/Chat.svelte | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index 29031aeaa..bd63c303d 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -297,9 +297,11 @@ const submitPrompt = async (userPrompt, _user = null) => { // Reset chat input textarea - prompt = ''; + document.getElementById('chat-textarea').value = ''; document.getElementById('chat-textarea').style.height = ''; + prompt = ''; + let _responses = []; console.log('submitPrompt', $chatId);