From 84dc98db4b02bb404eed9765ab18c77c49c18dd5 Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Fri, 26 Apr 2024 17:35:19 -0300 Subject: [PATCH] Fix useEffect dependency in PlaygroundPage component --- src/frontend/src/pages/Playground/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 (