diff --git a/src/loaders/shuttle/ApiBasedShuttleRepositoryLoader.ts b/src/loaders/shuttle/ApiBasedShuttleRepositoryLoader.ts index 19d4a14..bef753a 100644 --- a/src/loaders/shuttle/ApiBasedShuttleRepositoryLoader.ts +++ b/src/loaders/shuttle/ApiBasedShuttleRepositoryLoader.ts @@ -37,9 +37,9 @@ export class ApiBasedShuttleRepositoryLoader implements ShuttleRepositoryLoader await this.updateStopAndPolylineDataForRoutesInSystem(); await this.updateShuttleDataForSystemBasedOnProximityToRoutes(); - // Because ETA method doesn't support pruning yet, - // add a call to the clear method here - await this.updateEtaDataForExistingStopsForSystem(); + if (this.etaRepository) { + await this.updateEtaDataForExistingStopsForSystem(); + } } public async updateRouteDataForSystem() {