mirror of
https://github.com/scratchfoundation/scratch-paint.git
synced 2025-01-09 06:02:05 -05:00
Merge pull request #307 from fsih/deleteHoles
Don't error if there are no segments
This commit is contained in:
commit
10c6f263c2
1 changed files with 1 additions and 0 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue