diff --git a/src/helper/selection.js b/src/helper/selection.js index 32b067bd..3fb55412 100644 --- a/src/helper/selection.js +++ b/src/helper/selection.js @@ -213,6 +213,7 @@ const _removeSelectedSegments = function (items, onUpdateSvg) { const segmentsToRemove = []; for (let i = 0; i < items.length; i++) { + if (!items[i].segments) continue; const segments = items[i].segments; for (let j = 0; j < segments.length; j++) { const seg = segments[j];