Clear result before render thinking placeholder emoji in Obsidian chat

This commit is contained in:
Debanjum Singh Solanky 2023-11-30 13:53:09 -08:00
parent a0686428ff
commit d587632700

View file

@ -241,6 +241,7 @@ export class KhojChatModal extends Modal {
let responseElement = this.createKhojResponseDiv();
// Temporary status message to indicate that Khoj is thinking
this.result = "";
this.renderIncrementalMessage(responseElement, "🤔");
let response = await fetch(chatUrl, {