mirror of
https://github.com/open-webui/open-webui
synced 2025-02-18 19:08:42 +00:00
refac
This commit is contained in:
parent
c9137edf5a
commit
9032ab8857
@ -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 = '';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user