Skip to content

Commit 6a74062

Browse files
fix error trying to pan notexistant vehicle
1 parent 8e958fd commit 6a74062

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
@@ -525,7 +525,7 @@ function load() {
525525
}
526526

527527
function panTo(vcallsign) {
528-
if(!vcallsign) return;
528+
if(!vcallsign || vehicles[vcallsign] === undefined) return;
529529

530530
// update lookangles
531531
update_lookangles(vcallsign);

0 commit comments

Comments
 (0)