From d8d8ef58d31151486955d1932b85b232d6ad3352 Mon Sep 17 00:00:00 2001 From: miles-grant-ibigroup Date: Thu, 18 Jul 2024 14:37:45 -0400 Subject: [PATCH] fix pattern stop location map rendering --- lib/editor/components/map/PatternStopsLayer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/editor/components/map/PatternStopsLayer.js b/lib/editor/components/map/PatternStopsLayer.js index 28ab2059b..eabc9181b 100644 --- a/lib/editor/components/map/PatternStopsLayer.js +++ b/lib/editor/components/map/PatternStopsLayer.js @@ -60,7 +60,7 @@ export default class PatternStopsLayer extends Component { 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) {