diff --git a/src/renderer/src/pages/home/Inputbar/InputbarTools.tsx b/src/renderer/src/pages/home/Inputbar/InputbarTools.tsx index 9053a4e02e..efd9702679 100644 --- a/src/renderer/src/pages/home/Inputbar/InputbarTools.tsx +++ b/src/renderer/src/pages/home/Inputbar/InputbarTools.tsx @@ -501,7 +501,7 @@ const InputbarTools = ({ return hiddenTools.filter((tool) => tool.condition ?? true).length > 0 }, [hiddenTools]) - const getMenuItems = useMemo(() => { + const menuItems = useMemo(() => { const baseItems: ItemType[] = [...visibleTools, ...hiddenTools].map((tool) => ({ label: tool.label, key: tool.key, @@ -533,7 +533,7 @@ const InputbarTools = ({ }, [hiddenTools, t, targetTool, toggleToolVisibility, visibleTools]) return ( - + { const target = e.target as HTMLElement