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

refac

parent c9137edf
......@@ -297,8 +297,12 @@
const submitPrompt = async (userPrompt, _user = null) => {
// Reset chat input textarea
document.getElementById('chat-textarea').value = '';
document.getElementById('chat-textarea').style.height = '';
const chatTextAreaElement = document.getElementById('chat-textarea');
if (chatTextAreaElement) {
chatTextAreaElement.value = '';
chatTextAreaElement.style.height = '';
}
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