catch error produced when part slices to nothing but still has an anchor

This commit is contained in:
Stewart Allen 2021-06-17 12:49:39 -07:00
commit 32acfe376d

View file

@ -365,8 +365,9 @@
addto.up = start;
start.down = addto;
slices.splice(0,0,addto);
// } else {
// console.log({add_to_existing_slice: addto});
} else if (!addto.belt) {
console.log({addto_missing_belt: addto});
addto.belt = {};
}
addto.index = -1;
addto.belt.anchor = true;