mirror of
https://github.com/langflow-ai/langflow.git
synced 2026-07-24 09:49:32 +08:00
fix: make chatinput text appear on playground only if no sessions are present (#5117)
Changed newChatView to only set chat value if no messages are present on the flow Co-authored-by: Cristhian Zanforlin Lousa <cristhian.lousa@gmail.com>
This commit is contained in:
@ -83,7 +83,7 @@ export default function ChatView({
|
||||
return new Date(a.timestamp).getTime() - new Date(b.timestamp).getTime();
|
||||
});
|
||||
|
||||
if (finalChatHistory.length === 0 && !lockChat && chatInputNode)
|
||||
if (messages.length === 0 && !lockChat && chatInputNode)
|
||||
setChatValue(chatInputNode.data.node.template["input_value"].value ?? "");
|
||||
else setChatValue("");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user