From 67647c87473059357fe697d4ccd705dd9f395f28 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Sun, 20 Oct 2024 14:45:47 -0700 Subject: [PATCH] refac --- src/lib/components/chat/Chat.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index 0cd166eea..9a4b8d450 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/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')); }