diff --git a/src/interface/web/app/components/chatInputArea/chatInputArea.tsx b/src/interface/web/app/components/chatInputArea/chatInputArea.tsx index 6cb88ca0..88726bc4 100644 --- a/src/interface/web/app/components/chatInputArea/chatInputArea.tsx +++ b/src/interface/web/app/components/chatInputArea/chatInputArea.tsx @@ -256,7 +256,7 @@ export const ChatInputArea = forwardRef((pr const chatInputRef = ref as React.MutableRefObject; useEffect(() => { - if (!chatInputRef.current) return; + if (!chatInputRef?.current) return; chatInputRef.current.style.height = "auto"; chatInputRef.current.style.height = Math.max(chatInputRef.current.scrollHeight - 24, 64) + "px"; diff --git a/src/interface/web/app/page.tsx b/src/interface/web/app/page.tsx index 07dbd529..d0004ded 100644 --- a/src/interface/web/app/page.tsx +++ b/src/interface/web/app/page.tsx @@ -241,13 +241,13 @@ function ChatBodyData(props: ChatBodyDataProps) { setIsPopoverOpen(false); }} > - + {agentIcons[index]} {agent.name} { setHoveredAgent(null); setIsPopoverOpen(false);