This commit is contained in:
Timothy J. Baek 2024-06-09 16:05:29 -07:00
parent c9137edf5a
commit 9032ab8857

View File

@ -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 = '';