fix: Node preview image position error after reset node id

This commit is contained in:
刘雪峰
2024-03-22 14:08:41 +08:00
parent 33c31127b5
commit ff057336f9
+10
View File
@@ -778,6 +778,16 @@ class EasyApiWorkflows {
lLink.target_id = node.id;
}
}
// update app.nodeOutputs
if(oldNodeId in app.nodeOutputs) {
app.nodeOutputs[newNodeId] = app.nodeOutputs[oldNodeId]
delete app.nodeOutputs[oldNodeId]
}
// update app.nodePreviewImages
if(oldNodeId in app.nodePreviewImages) {
app.nodePreviewImages[newNodeId] = app.nodePreviewImages[oldNodeId]
delete app.nodePreviewImages[oldNodeId]
}
}
}