Merge pull request #307 from fsih/deleteHoles

Don't error if there are no segments
This commit is contained in:
DD Liu 2018-03-02 10:15:22 -05:00 committed by GitHub
commit 10c6f263c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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];