Commit a88475c8 by zhaochengxiang

bug fix

parent 46da724a
......@@ -116,7 +116,12 @@ const FC = (props) => {
const credentialRow = await credentialRef.current.validate();
const fileListBindName = credentialRef.current.fileListBindName;
let newDatasource = {...datasource};
let newDatasource = {...currentDatasourceType,
id: datasource?.id,
namespace: datasource?.namespace,
scope: datasource?.scope,
metadataId: datasource?.metadataId,
};
//深拷贝
newDatasource = JSON.parse(JSON.stringify(newDatasource));
......
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