diff --git a/src/frontend/src/modals/IOModal/components/chatView/newChatView.tsx b/src/frontend/src/modals/IOModal/components/chatView/newChatView.tsx index 31b746695..7619cce68 100644 --- a/src/frontend/src/modals/IOModal/components/chatView/newChatView.tsx +++ b/src/frontend/src/modals/IOModal/components/chatView/newChatView.tsx @@ -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("");