diff --git a/src/frontend/src/components/newChatView/index.tsx b/src/frontend/src/components/newChatView/index.tsx index a40c063ee..ec2c0d66c 100644 --- a/src/frontend/src/components/newChatView/index.tsx +++ b/src/frontend/src/components/newChatView/index.tsx @@ -57,17 +57,17 @@ export default function newChatView(): JSX.Element { return { isSend: !is_ai, message, sender_name }; }); setChatHistory(chatMessages); - }, [flowPool, outputIds]); + }, [flowPool]); useEffect(() => { if (messagesRef.current) { messagesRef.current.scrollTop = messagesRef.current.scrollHeight; } - }, [chatHistory]); + }, []); async function sendAll(data: sendAllProps): Promise {} useEffect(() => { if (ref.current) ref.current.scrollIntoView({ behavior: "smooth" }); - }, [chatHistory]); + }, []); const ref = useRef(null);