diff --git a/chat/index.html b/chat/index.html index f2ecd53f..87c02d39 100644 --- a/chat/index.html +++ b/chat/index.html @@ -1503,11 +1503,14 @@

Welcome to BioImage.IO Chatbot

const atAssistantButton = document.getElementById("at-buttons"); atAssistantButton.innerHTML = Object.values(allAssistants).map((a) => { - return `
  • ${a.alias}(${a.name})
  • ` + if(a.name !== assistantName) + return `
  • ${a.alias} (${a.name})
  • ` + else + return "" }).join("\n"); // Get all the dropdown items - const dropdownItems = document.querySelectorAll('.dropdown-item'); + const dropdownItems = document.querySelectorAll('.at-button'); // Add a 'click' event listener to each dropdown item dropdownItems.forEach(item => {