mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 13:55:19 +00:00
refac
This commit is contained in:
parent
c9137edf5a
commit
9032ab8857
1 changed files with 6 additions and 2 deletions
|
|
@ -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 a new issue