check if element setup before detach
This commit is contained in:
parent
67274f873c
commit
e31d50eedc
1 changed files with 3 additions and 1 deletions
|
|
@ -576,7 +576,9 @@
|
||||||
var maxHeight = 0;
|
var maxHeight = 0;
|
||||||
_.each(nodes, function(n) {
|
_.each(nodes, function(n) {
|
||||||
if (n._id === null) {
|
if (n._id === null) {
|
||||||
n.el.remove();
|
if (n.el) {
|
||||||
|
n.el.remove();
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
n.el
|
n.el
|
||||||
.attr('data-gs-x', n.x)
|
.attr('data-gs-x', n.x)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue