From bb0873eeacd5b8f0a382d68b93f53febfd6079c5 Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Mon, 27 Feb 2023 19:05:44 -0300 Subject: [PATCH] add coment to bug on upload --- space_flow/src/components/chatComponent/index.tsx | 2 -- space_flow/src/contexts/tabsContext.tsx | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/space_flow/src/components/chatComponent/index.tsx b/space_flow/src/components/chatComponent/index.tsx index 9a6ec63f7..60ed864d6 100644 --- a/space_flow/src/components/chatComponent/index.tsx +++ b/space_flow/src/components/chatComponent/index.tsx @@ -28,14 +28,12 @@ export default function Chat({flow, reactFlowInstance }) { }); setSaveChat(chat=>!chat) }; - //bug here why?? useEffect(()=>{ console.log("flow") updateFlow({..._.cloneDeep(flow),chat:chatHistory}) },[saveChat]) useEffect(()=>{ setChatHistory(flow.chat) - // console.log(flow.chat) },[flow]) useEffect(()=>{ if(ref.current) diff --git a/space_flow/src/contexts/tabsContext.tsx b/space_flow/src/contexts/tabsContext.tsx index 86bf32e22..56df51bfe 100644 --- a/space_flow/src/contexts/tabsContext.tsx +++ b/space_flow/src/contexts/tabsContext.tsx @@ -75,6 +75,7 @@ export function TabsProvider({ children }) { link.download = `${flows[tabIndex].name}.json`; link.click(); } + //upload is always empty, don't know why function uploadFlow() { const input = document.createElement("input"); input.type = "file";