graflow: fix delete wires

This commit is contained in:
STEINNI
2026-03-09 20:53:15 +00:00
parent 301e44997f
commit e55630f986

View File

@@ -1315,6 +1315,7 @@ class EditWires{
if((e.key == 'Delete') && this.currentlySelectedWire) { if((e.key == 'Delete') && this.currentlySelectedWire) {
this.graflow.flow.links = this.graflow.flow.links.filter(link => link.id != this.currentlySelectedWire.dataset.id) this.graflow.flow.links = this.graflow.flow.links.filter(link => link.id != this.currentlySelectedWire.dataset.id)
this.graflow.stagedWires[this.currentlySelectedWire.dataset.id].remove() this.graflow.stagedWires[this.currentlySelectedWire.dataset.id].remove()
delete(this.graflow.stagedWires[this.currentlySelectedWire.dataset.id])
this.currentlySelectedWire.remove() this.currentlySelectedWire.remove()
this.currentlySelectedWire = null this.currentlySelectedWire = null
return return