From 5783b69f0aec750f999e54bdad823dc48a3103f8 Mon Sep 17 00:00:00 2001 From: DD Date: Thu, 1 Mar 2018 17:14:09 -0500 Subject: [PATCH] Don't error if there are no segments --- src/helper/selection.js | 1 + 1 file changed, 1 insertion(+) 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];