Commit 5e398889 by zhaochengxiang

bug fix

parent 5149af75
......@@ -95,6 +95,17 @@ const FC = (props) => {
setTaskSettings(data);
let recentSchemas = [];
if (data) {
const index = (data.targetConfParameters||[]).findIndex(item => item.name === 'schema');
if (index !== -1) {
const schemaItem = data.targetConfParameters[index].selectItem||[];
setSchemas(schemaItem);
recentSchemas = schemaItem;
} else {
setSchemas([]);
}
}
data && (data.targetConfParameters||[]).forEach(item => {
if (item.name === 'schema') {
setSchemas(item.selectItem||[]);
......
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