Skip to content

Commit c129348

Browse files
committed
fix(PatternStopsLayer): fix undefined patternStop
1 parent 5e53d7f commit c129348

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/editor/components/map/PatternStopsLayer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default class PatternStopsLayer extends Component {
2222
setActiveStop,
2323
stops
2424
} = this.props
25-
const stopNotFound = activePattern && activePattern.patternStops.findIndex(ps => ps.id === activePatternStop.id) === -1
25+
const stopNotFound = activePattern && activePatternStop && activePattern.patternStops && activePattern.patternStops.findIndex(ps => ps.id === activePatternStop.id) === -1
2626
return (
2727
<FeatureGroup id='PatternStops'>
2828
{stops && activePattern && editSettings.showStops

0 commit comments

Comments
 (0)