From 2b6ef515e0ff4cbedd203f39291af262e90bd98e Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Mon, 13 Mar 2023 14:17:10 -0300 Subject: [PATCH] clear bug fixed --- langflow/frontend/src/components/chatComponent/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/langflow/frontend/src/components/chatComponent/index.tsx b/langflow/frontend/src/components/chatComponent/index.tsx index b265b414a..728f0c988 100644 --- a/langflow/frontend/src/components/chatComponent/index.tsx +++ b/langflow/frontend/src/components/chatComponent/index.tsx @@ -30,7 +30,8 @@ export default function Chat({ flow, reactFlowInstance }: ChatType) { let tabsChange = false; setChatHistory((old) => { let newChat = _.cloneDeep(old); - if(flow.chat !==old){ + if(JSON.stringify(flow.chat) !==JSON.stringify(old)){ + console.log(old,flow.chat) tabsChange = true return old }