From 7e971f9dd18ca91c6016630c7a5095d5afd79eed Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Mon, 3 Feb 2025 21:13:27 -0800 Subject: [PATCH] refac --- src/lib/components/chat/Chat.svelte | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index 32c106038..ebd882dfc 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -1266,7 +1266,6 @@ } prompt = ''; - await tick(); // Reset chat input textarea const chatInputElement = document.getElementById('chat-input'); @@ -1308,9 +1307,6 @@ history.messages[messages.at(-1).id].childrenIds.push(userMessageId); } - // Wait until history/message have been updated - await tick(); - // focus on chat input const chatInput = document.getElementById('chat-input'); chatInput?.focus();