diff --git a/apps/web/src/components/chat/ComposerCommandMenu.tsx b/apps/web/src/components/chat/ComposerCommandMenu.tsx index 7af4e6da43..5997018ab1 100644 --- a/apps/web/src/components/chat/ComposerCommandMenu.tsx +++ b/apps/web/src/components/chat/ComposerCommandMenu.tsx @@ -43,11 +43,13 @@ export const ComposerCommandMenu = memo(function ComposerCommandMenu(props: { }) { return ( { - props.onHighlightedItemChange( - typeof highlightedValue === "string" ? highlightedValue : null, - ); + if (typeof highlightedValue === "string") { + props.onHighlightedItemChange(highlightedValue); + } }} >