Skip to content

Commit

Permalink
prevent crash
Browse files Browse the repository at this point in the history
  • Loading branch information
miles-grant-ibigroup committed Mar 28, 2024
1 parent 0e2586c commit 9c034ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/editor/actions/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function getCloneProps (entityId: number, component: string, state: AppState) {
patternId: newPatternId,
shapeId: newShapeId,
shapePoints: pattern.shapePoints.map(sp => ({...sp, shapeId: newShapeId})),
patternLocationGroups: pattern.patternLocationGroups.map(plg => ({...plg, patternId: newPatternId})),
patternLocationGroups: pattern.patternLocationGroups && pattern.patternLocationGroups.map(plg => ({...plg, patternId: newPatternId})),
patternLocations: pattern.patternLocations.map(pl => ({...pl, patternId: newPatternId})),
patternStops: pattern.patternStops.map(ps => ({...ps, patternId: newPatternId}))
}
Expand Down

0 comments on commit 9c034ee

Please sign in to comment.