Skip to content

Commit 85019c2

Browse files
Fixed length index
1 parent 896862f commit 85019c2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/controllers/maps/getRoutesPolyline.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export async function getRoutesPolyline(googleMapsApiToken: string, waypoints: {
2020
}
2121
},
2222

23-
intermediates: waypoints.slice(1, waypoints.length - 2).map((waypoint) => {
23+
intermediates: waypoints.slice(1, waypoints.length - 1).map((waypoint) => {
2424
return {
2525
location: {
2626
latLng: waypoint

0 commit comments

Comments
 (0)