Skip to content

Commit

Permalink
fix(PatternStopsLayer): fix undefined patternStop
Browse files Browse the repository at this point in the history
  • Loading branch information
landonreed committed Jun 6, 2017
1 parent 5e53d7f commit c129348
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/editor/components/map/PatternStopsLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default class PatternStopsLayer extends Component {
setActiveStop,
stops
} = this.props
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
return (
<FeatureGroup id='PatternStops'>
{stops && activePattern && editSettings.showStops
Expand Down

0 comments on commit c129348

Please sign in to comment.