mirror of
https://github.com/wanglin2/mind-map.git
synced 2026-02-21 18:37:43 +08:00
Fix:修复隐藏节点时隐藏连线没有做异常处理的问题
This commit is contained in:
parent
9c60857c6a
commit
95fe3189d5
@ -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()
|
||||
})
|
||||
|
||||
Loading…
Reference in New Issue
Block a user