Skip to content

Commit ee394c5

Browse files
argiloTheSkorm
authored andcommitted
Fix prediction length popup
1 parent b138d27 commit ee394c5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

js/sondehub.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2328,7 +2328,8 @@ function drawLaunchPrediction(vcallsign) {
23282328
mapInfoBox_handle_prediction_path(e);
23292329
});
23302330

2331-
vehicle.prediction_launch_polyline.path_length = path_length;
2331+
vehicle.prediction_launch_polyline[0].path_length = path_length;
2332+
vehicle.prediction_launch_polyline[1].path_length = path_length;
23322333
}
23332334

23342335
// Takes in an SVG for a balloon, parachute, target, car, etc and sets a dynamic-color
@@ -2407,7 +2408,8 @@ function redrawPrediction(vcallsign) {
24072408
})
24082409
}
24092410

2410-
vehicle.prediction_polyline.path_length = path_length;
2411+
vehicle.prediction_polyline[0].path_length = path_length;
2412+
vehicle.prediction_polyline[1].path_length = path_length;
24112413

24122414
var image_src;
24132415

0 commit comments

Comments
 (0)