Skip to content

Commit e9d5950

Browse files
fix bug incorrectly redrawing graph on new predictions
1 parent 3a3f5cf commit e9d5950

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/tracker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1068,7 +1068,7 @@ function redrawPrediction(vcallsign) {
10681068
}
10691069

10701070
vehicle.graph_data[1].data = graph_data;
1071-
updateGraph(vcallsign, true);
1071+
if(follow_vehicle !== null && follow_vehicle === vcallsign) updateGraph(vcallsign, true);
10721072
vehicle.prediction_path = line;
10731073

10741074
if(vehicle.prediction_polyline !== null) {

0 commit comments

Comments
 (0)