Fix useEffect dependency in PlaygroundPage component

This commit is contained in:
anovazzi1 2024-04-26 17:35:19 -03:00
commit 84dc98db4b

View file

@ -35,7 +35,7 @@ export default function PlaygroundPage() {
setCurrentFlow(flow);
});
}
}, []);
}, [currentFlow]);
useEffect(() => {
if (currentFlow) {
@ -44,7 +44,7 @@ export default function PlaygroundPage() {
cleanFlowPool();
setLoading(false);
}
}, [currentFlowId]);
}, [currentFlow]);
return (