diff --git a/src/frontend/src/pages/Playground/index.tsx b/src/frontend/src/pages/Playground/index.tsx index d06b1e1ae..5a4f1a5c2 100644 --- a/src/frontend/src/pages/Playground/index.tsx +++ b/src/frontend/src/pages/Playground/index.tsx @@ -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 (