Commit f270daa9 by zhaochengxiang

bug fix

parent aa608f14
...@@ -66,9 +66,11 @@ const ETLConfigModal = (props) => { ...@@ -66,9 +66,11 @@ const ETLConfigModal = (props) => {
const {pageNum, pageSize} = pagination; const {pageNum, pageSize} = pagination;
useEffect(() => { useEffect(() => {
getDatasourcesByEnv(); if (visible) {
getDatasourcesByEnv();
}
//eslint-disable-next-line react-hooks/exhaustive-deps //eslint-disable-next-line react-hooks/exhaustive-deps
}, [env]) }, [env, visible])
useEffect(() => { useEffect(() => {
if (visible) { if (visible) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment