Skip to content

Commit

Permalink
correct stopStrategies patternStop pushing
Browse files Browse the repository at this point in the history
  • Loading branch information
miles-grant-ibigroup committed Aug 16, 2024
1 parent 71b16ea commit 9ff7ee9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/editor/actions/map/stopStrategies.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ export function addStopToPattern (pattern: Pattern, stop: GtfsStop | GtfsLocatio
: index
)

if (newStop.stopId !== null) {
if (index === undefined) {
patternStops.push(newStop)
}
pattern.shapeId = generateUID()
Expand Down

0 comments on commit 9ff7ee9

Please sign in to comment.