From a07eeed787b4a1f1db7e1bf0e1267e2336a4c1ae Mon Sep 17 00:00:00 2001 From: Caleb Denio Date: Thu, 2 Jul 2026 08:54:59 -0600 Subject: [PATCH] fix headsign issue --- static/index.html | 2 +- static/js/main.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/static/index.html b/static/index.html index 9409796..abebb0a 100644 --- a/static/index.html +++ b/static/index.html @@ -273,6 +273,6 @@ - + diff --git a/static/js/main.js b/static/js/main.js index 3ce6288..8c7b456 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -168,7 +168,7 @@ function renderVehicle(vehicle) { icon: renderVehicleIcon(vehicle), }) .bindPopup( - `${routeDesignator(vehicle.route)} to ${vehicle.headsign.replace( + `${routeDesignator(vehicle.route)} to ${vehicle.headsign?.replace( /^to /i, "" )}${vehicle.nearest_station ? `
@ ${vehicle.nearest_station?.name}` : ""}

vehicle #: ${vehicle.id}`