From 4da40a05120678d0eda9eb6ee03debb7479d13b6 Mon Sep 17 00:00:00 2001 From: Clayton Smith Date: Wed, 16 Oct 2024 23:54:37 -0400 Subject: [PATCH] Fix prediction length popup --- js/sondehub.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/js/sondehub.js b/js/sondehub.js index 1edbc00..c6c6a89 100644 --- a/js/sondehub.js +++ b/js/sondehub.js @@ -2328,7 +2328,8 @@ function drawLaunchPrediction(vcallsign) { mapInfoBox_handle_prediction_path(e); }); - vehicle.prediction_launch_polyline.path_length = path_length; + vehicle.prediction_launch_polyline[0].path_length = path_length; + vehicle.prediction_launch_polyline[1].path_length = path_length; } // Takes in an SVG for a balloon, parachute, target, car, etc and sets a dynamic-color @@ -2407,7 +2408,8 @@ function redrawPrediction(vcallsign) { }) } - vehicle.prediction_polyline.path_length = path_length; + vehicle.prediction_polyline[0].path_length = path_length; + vehicle.prediction_polyline[1].path_length = path_length; var image_src;