Skip to content

Commit 5ff1f94

Browse files
z275748353张龙彬
andauthored
Fix the bug of dataflow with ID OpenCSGs/csghub-dataflow#31 (#1412)
* add dataflow * add dataflow * remove antv/x6/lib/registry package * Fix bugs * Fix bugs * add package * add package * add zhHantOps * 1.Adjust the image path for operator management 2.Add permission judgment on whether to display the menu in operator management * Operator Management: Modification of dataflow/operator/ interface * 1.Add the cancellation of execution for internationalization and status verification 2.If a user has no organization or no authorized operators, all public operators will be queried by default * 1.Add the cancellation of execution for internationalization and status verification 2.If a user has no organization or no authorized operators, all public operators will be queried by default * 1.Add the cancellation of execution for internationalization and status verification 2.If a user has no organization or no authorized operators, all public operators will be queried by default * Add newly developed operators, internationalize tools, and supplement the internationalization of statistics. * Add newly developed operators, internationalize tools, and supplement the internationalization of statistics. * 1.Add template deletion function 2.Celery node deletion (admin only, offline status) 3.Block the option of creating tool operators, set tools as default 4.Internationalization update * Fix the bug of dataflow with ID #36 * Fix the bug of dataflow with ID OpenCSGs/csghub-dataflow#31 --------- Co-authored-by: 张龙彬 <[email protected]>
1 parent 8f493c0 commit 5ff1f94

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

frontend/src/components/dataflow_config/dataflow/workflowEditor.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1679,12 +1679,12 @@
16791679
})
16801680
}
16811681
1682-
// 按拓扑顺序生成YAML节点,使用operator_name作为键
1682+
// 按拓扑顺序生成YAML节点,使用节点的唯一ID作为键
16831683
sortedNodes.forEach(nodeId => {
16841684
const node = nodes.value.find(n => n.id === nodeId)
16851685
if (node) {
1686-
// 使用operator_name作为键,如果operator_name无效则回退到id
1687-
const nodeKey = node.operator_name || node.id
1686+
// 使用节点的唯一ID作为键,避免重复
1687+
const nodeKey = node.id
16881688
16891689
// 处理节点配置中的数组字段,转为逗号分隔字符串
16901690
const processedConfigs = (node.configs || []).map(config => {
@@ -1698,7 +1698,7 @@
16981698
}
16991699
}
17001700
return config
1701-
});
1701+
})
17021702
17031703
console.log('processedConfigs=', processedConfigs)
17041704

0 commit comments

Comments
 (0)