mirror of
https://github.com/projectstorm/react-diagrams.git
synced 2025-08-15 01:00:40 +08:00
Update LinkModel.ts
This commit is contained in:
@ -163,11 +163,11 @@ export class LinkModel<G extends LinkModelGenerics = LinkModelGenerics>
|
|||||||
remove() {
|
remove() {
|
||||||
if (this.sourcePort) {
|
if (this.sourcePort) {
|
||||||
this.sourcePort.removeLink(this);
|
this.sourcePort.removeLink(this);
|
||||||
delete sourcePort;
|
delete super.sourcePort;
|
||||||
}
|
}
|
||||||
if (this.targetPort) {
|
if (this.targetPort) {
|
||||||
this.targetPort.removeLink(this);
|
this.targetPort.removeLink(this);
|
||||||
delete targetPort;
|
delete super.targetPort;
|
||||||
}
|
}
|
||||||
super.remove();
|
super.remove();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user