mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-06 02:28:51 +01: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