diff --git a/space_flow/src/pages/FlowPage/flowManager/index.tsx b/space_flow/src/pages/FlowPage/flowManager/index.tsx index 22ff57a3e..3b68bff78 100644 --- a/space_flow/src/pages/FlowPage/flowManager/index.tsx +++ b/space_flow/src/pages/FlowPage/flowManager/index.tsx @@ -15,12 +15,6 @@ export function TabsManager() { } }, []); - useEffect(() => { - // Do something when the tabIndex or flow state changes - // For example, log a message to the console - console.log("Tab index or flow state changed"); - }, [tabIndex, flows]); - return (
@@ -34,19 +28,9 @@ export function TabsManager() {
- +
); } - -/* -tabs initial logic -TO DO -- create a context with the tabs control so tabs can be changed inside the flow -- create a logic to save tabs and flow state for multitabs and each flow inside each tab -- think about the save logic and how to implement it the best way -- define what each tab will need to show and how it will be displayed - -*/ diff --git a/space_flow/src/pages/FlowPage/index.tsx b/space_flow/src/pages/FlowPage/index.tsx index 0497378ee..d791a122c 100644 --- a/space_flow/src/pages/FlowPage/index.tsx +++ b/space_flow/src/pages/FlowPage/index.tsx @@ -56,6 +56,11 @@ export default function FlowPage({flow}) { } },[nodes,edges]) + useEffect(()=>{ + setNodes(flow?.data?.nodes || []) + setEdges(flow?.data?.edges || []) + },[flow]) + useEffect(() => { setExtraComponent(); setExtraNavigation({ title: "Nodes" });