Commit 9032ab88 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

refac

parent c9137edf
...@@ -297,8 +297,12 @@ ...@@ -297,8 +297,12 @@
const submitPrompt = async (userPrompt, _user = null) => { const submitPrompt = async (userPrompt, _user = null) => {
// Reset chat input textarea // Reset chat input textarea
document.getElementById('chat-textarea').value = ''; const chatTextAreaElement = document.getElementById('chat-textarea');
document.getElementById('chat-textarea').style.height = '';
if (chatTextAreaElement) {
chatTextAreaElement.value = '';
chatTextAreaElement.style.height = '';
}
prompt = ''; prompt = '';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment