Skip to content

Commit 8c4cce4

Browse files
mcreinhardcopybara-github
authored andcommitted
refactor: rename directionsController in Place Distance Label
PiperOrigin-RevId: 551710982
1 parent b5b031c commit 8c4cce4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/place_building_blocks/place_distance_label/place_distance_label.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export class PlaceDistanceLabel extends PlaceDataConsumer {
7979
protected readonly fontLoader =
8080
new WebFontController(this, [WebFont.MATERIAL_SYMBOLS_OUTLINED]);
8181

82-
private readonly directionsService = new DirectionsController(this);
82+
private readonly directionsController = new DirectionsController(this);
8383
private isFetchingDirectionsData = false;
8484

8585
protected override willUpdate(changedProperties: PropertyValues) {
@@ -132,7 +132,7 @@ export class PlaceDistanceLabel extends PlaceDataConsumer {
132132
const destination = makePlaceForDirectionsRequest(place);
133133
if (origin && destination) {
134134
this.isFetchingDirectionsData = true;
135-
const result = await this.directionsService.route({
135+
const result = await this.directionsController.route({
136136
origin,
137137
destination,
138138
travelMode: (this.travelMode?.toUpperCase() ?? 'DRIVING') as TravelMode,

0 commit comments

Comments
 (0)