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