diff --git a/src/frontend/src/modals/IOModal/components/chatView/components/chat-view.tsx b/src/frontend/src/modals/IOModal/components/chatView/components/chat-view.tsx index b92242fb9..08f715271 100644 --- a/src/frontend/src/modals/IOModal/components/chatView/components/chat-view.tsx +++ b/src/frontend/src/modals/IOModal/components/chatView/components/chat-view.tsx @@ -1,9 +1,5 @@ import LangflowLogo from "@/assets/LangflowLogo.svg?react"; -import ForwardedIconComponent from "@/components/common/genericIconComponent"; -import { ProfileIcon } from "@/components/core/appHeaderComponent/components/ProfileIcon"; import { TextEffectPerChar } from "@/components/ui/textAnimation"; -import { CustomProfileIcon } from "@/customization/components/custom-profile-icon"; -import { ENABLE_DATASTAX_LANGFLOW } from "@/customization/feature-flags"; import { track } from "@/customization/utils/analytics"; import { useMessagesStore } from "@/stores/messagesStore"; import { useUtilityStore } from "@/stores/utilityStore"; @@ -114,12 +110,11 @@ export default function ChatView({ setChatValueStore( chatInputNode.data.node.template["input_value"].value ?? "", ); - } else { - isTabHidden ? setChatValueStore("") : null; } setChatHistory(finalChatHistory); - }, [flowPool, messages, visibleSession]); + }, [messages, visibleSession]); + useEffect(() => { if (messagesRef.current) { messagesRef.current.scrollTop = messagesRef.current.scrollHeight;