catch error produced when part slices to nothing but still has an anchor
This commit is contained in:
parent
e3a6991845
commit
32acfe376d
1 changed files with 3 additions and 2 deletions
|
|
@ -365,8 +365,9 @@
|
||||||
addto.up = start;
|
addto.up = start;
|
||||||
start.down = addto;
|
start.down = addto;
|
||||||
slices.splice(0,0,addto);
|
slices.splice(0,0,addto);
|
||||||
// } else {
|
} else if (!addto.belt) {
|
||||||
// console.log({add_to_existing_slice: addto});
|
console.log({addto_missing_belt: addto});
|
||||||
|
addto.belt = {};
|
||||||
}
|
}
|
||||||
addto.index = -1;
|
addto.index = -1;
|
||||||
addto.belt.anchor = true;
|
addto.belt.anchor = true;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue