Commit 14cb0e23 by zhaochengxiang

bug fix

parent 677950e8
......@@ -43,7 +43,7 @@ const FC = (props) => {
}, [selectedTargetType, supportedDatasourceTypies])
const getDatasource = () => {
setLoading(false)
setLoading(true)
dispatch({
type: 'datasource.getDatasourceByMetadatald',
payload: {
......@@ -55,8 +55,12 @@ const FC = (props) => {
databaseType,
},
callback: data => {
setLoading(false)
setDatasource(data)
setSelectedTargetType(data?.type)
},
error: () => {
setLoading(false)
}
})
}
......
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