mirror of
https://github.com/woodchen-ink/certimate.git
synced 2025-07-19 09:51:55 +08:00
fix: #485
This commit is contained in:
parent
574ad0445e
commit
411c39b148
@ -270,7 +270,16 @@ export const updateNode = (node: WorkflowNode, targetNode: WorkflowNode) => {
|
||||
let current = draft;
|
||||
while (current) {
|
||||
if (current.id === targetNode.id) {
|
||||
Object.assign(current, targetNode);
|
||||
// Object.assign(current, targetNode);
|
||||
// TODO: 暂时这么处理,避免 #485 #489,后续再优化
|
||||
current.type = targetNode.type;
|
||||
current.name = targetNode.name;
|
||||
current.config = targetNode.config;
|
||||
current.inputs = targetNode.inputs;
|
||||
current.outputs = targetNode.outputs;
|
||||
current.next = targetNode.next;
|
||||
current.branches = targetNode.branches;
|
||||
current.validated = targetNode.validated;
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user