"src/lib/vscode:/vscode.git/clone" did not exist on "a3ecf62564dc3321115682678f5604b120661629"
Commit 78272aed authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

fix

parent 3f7913b3
...@@ -296,16 +296,6 @@ ...@@ -296,16 +296,6 @@
////////////////////////// //////////////////////////
const submitPrompt = async (userPrompt, _user = null) => { const submitPrompt = async (userPrompt, _user = null) => {
// Reset chat input textarea
const chatTextAreaElement = document.getElementById('chat-textarea');
if (chatTextAreaElement) {
chatTextAreaElement.value = '';
chatTextAreaElement.style.height = '';
}
prompt = '';
let _responses = []; let _responses = [];
console.log('submitPrompt', $chatId); console.log('submitPrompt', $chatId);
...@@ -329,8 +319,15 @@ ...@@ -329,8 +319,15 @@
) )
); );
} else { } else {
// Reset chat message textarea height // Reset chat input textarea
document.getElementById('chat-textarea').style.height = ''; const chatTextAreaElement = document.getElementById('chat-textarea');
if (chatTextAreaElement) {
chatTextAreaElement.value = '';
chatTextAreaElement.style.height = '';
}
prompt = '';
// Create user message // Create user message
let userMessageId = uuidv4(); let userMessageId = uuidv4();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment