fix: removed dependency from useEffect that causes chat input to be cleared (#7393)
* Removed flowPool from dependencies of function that clears chat input * remove console.log --------- Co-authored-by: Cristhian Zanforlin Lousa <cristhian.lousa@gmail.com>
This commit is contained in:
parent
ea6022d757
commit
f11a89c701
1 changed files with 2 additions and 7 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue