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