Skip to content

Commit 22e9085

Browse files
committed
fix(stopStrategies): Allow two point shapePoint arrays to be extended to the next stop
1 parent f617cbf commit 22e9085

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/editor/actions/map/stopStrategies.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ export function addStopToPattern (pattern: Pattern, stop: GtfsStop, index?: ?num
227227
const patternStops = clone(currentPatternStops)
228228
const {controlPoints, patternSegments} = getControlPoints(getState())
229229
const patternLine = lineString(coordinatesFromShapePoints(shapePoints))
230-
const hasShapePoints = shapePoints && shapePoints.length > 2
230+
const hasShapePoints = shapePoints && shapePoints.length >= 2
231231
const newStop = stopToPatternStop(
232232
stop,
233233
(typeof index === 'undefined' || index === null)

0 commit comments

Comments
 (0)