fix: clear chat input when sending from play button (#5071)
Fix newChatView to clear chat input if the component runs before
This commit is contained in:
parent
74a8ff5bea
commit
c044a1c947
1 changed files with 1 additions and 0 deletions
|
|
@ -85,6 +85,7 @@ export default function ChatView({
|
|||
|
||||
if (finalChatHistory.length === 0 && !lockChat && chatInputNode)
|
||||
setChatValue(chatInputNode.data.node.template["input_value"].value ?? "");
|
||||
else setChatValue("");
|
||||
|
||||
setChatHistory(finalChatHistory);
|
||||
}, [flowPool, messages, visibleSession]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue