We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e53d7f commit c129348Copy full SHA for c129348
lib/editor/components/map/PatternStopsLayer.js
@@ -22,7 +22,7 @@ export default class PatternStopsLayer extends Component {
22
setActiveStop,
23
stops
24
} = this.props
25
- const stopNotFound = activePattern && activePattern.patternStops.findIndex(ps => ps.id === activePatternStop.id) === -1
+ const stopNotFound = activePattern && activePatternStop && activePattern.patternStops && activePattern.patternStops.findIndex(ps => ps.id === activePatternStop.id) === -1
26
return (
27
<FeatureGroup id='PatternStops'>
28
{stops && activePattern && editSettings.showStops
0 commit comments