mirror of
https://github.com/projectstorm/react-diagrams.git
synced 2025-08-14 16:51:29 +08:00
Fix port parent prop on clone
This commit is contained in:
@ -81,9 +81,9 @@ export class PortModel<G extends PortModelGenerics = PortModelGenerics> extends
|
||||
});
|
||||
}
|
||||
|
||||
doClone(lookupTable = {}, clone) {
|
||||
doClone(lookupTable = {}, clone: PortModel) {
|
||||
clone.links = {};
|
||||
clone.parentNode = this.getParent().clone(lookupTable);
|
||||
clone.parent = this.getParent().clone(lookupTable);
|
||||
}
|
||||
|
||||
getNode(): NodeModel {
|
||||
|
Reference in New Issue
Block a user