add coment to bug on upload
This commit is contained in:
parent
682190dec0
commit
bb0873eeac
2 changed files with 1 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue