clear bug fixed

This commit is contained in:
anovazzi1 2023-03-13 14:17:10 -03:00
commit 2b6ef515e0

View file

@ -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
}