Skip to content

Commit

Permalink
Fix getting file-toggle-button element in chat of web app
Browse files Browse the repository at this point in the history
  • Loading branch information
debanjum committed Jun 21, 2024
1 parent fa7b40a commit 7e277e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/khoj/interface/web/chat.html
Original file line number Diff line number Diff line change
Expand Up @@ -1965,11 +1965,11 @@
var nofilesmessage = document.getElementsByClassName("no-files-message")[0];
if(allFiles.length === 0){
nofilesmessage.innerHTML = `<a class="inline-chat-link" href="https://docs.khoj.dev/category/clients/">How to upload files</a>`;
document.getElementById("file-toggle-button").style.display = "none";
document.getElementsByClassName("file-toggle-button")[0].style.display = "none";
}
else{
nofilesmessage.innerHTML = "";
document.getElementById("file-toggle-button").style.display = "block";
document.getElementsByClassName("file-toggle-button")[0].style.display = "block";
}
})
.catch((error) => {
Expand Down

0 comments on commit 7e277e9

Please sign in to comment.