mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-06-18 10:35:30 +08:00
Links fixed
This commit is contained in:
@@ -53,8 +53,15 @@ export default class LinkElement extends IElement {
|
||||
}
|
||||
|
||||
#unlinkPins() {
|
||||
this.#source.unlinkFrom(this.#destination)
|
||||
this.#destination.unlinkFrom(this.#source)
|
||||
if (this.#source && this.#destination) {
|
||||
this.#source.unlinkFrom(this.#destination)
|
||||
this.#destination.unlinkFrom(this.#source)
|
||||
}
|
||||
}
|
||||
|
||||
disconnectedCallback() {
|
||||
super.disconnectedCallback()
|
||||
this.#unlinkPins()
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user