Skip to content

Commit

Permalink
fix pattern stop location map rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
miles-grant-ibigroup committed Jul 18, 2024
1 parent a0e16c2 commit d8d8ef5
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 @@ -60,7 +60,7 @@ export default class PatternStopsLayer extends Component<Props> {
patternStops.findIndex(ps => ps.id === activePatternStop.id) === -1
let cpIndex = 0
let psIndex = 0
const patternStopsWithControlPointIndexes = patternStops.filter(ps => ps.locationId !== null || ps.locationGroupId !== null)
const patternStopsWithControlPointIndexes = patternStops.filter(ps => ps.locationId === null || ps.locationGroupId === null)
// Associate pattern stops with control point indices.
while (controlPoints[cpIndex]) {
if (controlPoints[cpIndex].pointType === POINT_TYPE.STOP) {
Expand Down

0 comments on commit d8d8ef5

Please sign in to comment.