mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 20:07:49 +01:00
refac
This commit is contained in:
@@ -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 = '';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user