mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-09-21 21:50:49 +02:00
😶🌫️ refactor: Conditionally Hide Tools Dropdown (#9530)
This commit is contained in:
parent
751c2e1d17
commit
957fa7a994
1 changed files with 4 additions and 0 deletions
|
@ -293,6 +293,10 @@ const ToolsDropdown = ({ disabled }: ToolsDropdownProps) => {
|
|||
});
|
||||
}
|
||||
|
||||
if (dropdownItems.length === 0) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const menuTrigger = (
|
||||
<TooltipAnchor
|
||||
render={
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue