Fix useEffect dependency in PlaygroundPage component
This commit is contained in:
parent
c5b9419e52
commit
84dc98db4b
1 changed files with 2 additions and 2 deletions
|
|
@ -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 (
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue