Merge branch 'main' into dev

This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-05-30 11:45:45 -03:00 • committed by GitHub
commit 460a92040d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 4 deletions

View file

@ -97,6 +97,7 @@ export default function GenericNode({
deleteNode(data.id); deleteNode(data.id);
return; return;
} }
console.log(data);
return ( return (
<div <div

View file

@ -83,10 +83,6 @@ export function TabsProvider({ children }: { children: ReactNode }) {
); );
} }
} }
useEffect(() => {
//save tabs locally
save();
}, [flows, id, tabIndex, newNodeId]);
useEffect(() => { useEffect(() => {
//get tabs locally saved //get tabs locally saved
@ -129,6 +125,12 @@ export function TabsProvider({ children }: { children: ReactNode }) {
} }
}, [templates]); }, [templates]);
useEffect(() => {
//save tabs locally
console.log(id);
save();
}, [flows, id, tabIndex, newNodeId]);
function hardReset() { function hardReset() {
newNodeId.current = uuidv4(); newNodeId.current = uuidv4();
setTabIndex(0); setTabIndex(0);