Fix:修复隐藏节点时隐藏连线没有做异常处理的问题

This commit is contained in:
wanglin2 2023-04-14 20:32:11 +08:00
parent 9c60857c6a
commit 95fe3189d5

View File

@ -560,7 +560,7 @@ class Node {
this.hideGeneralization()
if (this.parent) {
let index = this.parent.children.indexOf(this)
this.parent._lines[index].hide()
this.parent._lines[index] && this.parent._lines[index].hide()
this._lines.forEach(item => {
item.hide()
})