Skip to content

Commit

Permalink
Add pipe
Browse files Browse the repository at this point in the history
  • Loading branch information
HarelM committed Jun 13, 2024
1 parent 8a0480e commit b22658a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export class RouteStatisticsComponent extends BaseMapComponent implements OnInit
margin: { top: 10, right: 10, bottom: 40, left: 40 },
} as IChartElements;
this.zoom = 7;
this.store.select((state: ApplicationState) => state.locationState.zoom).subscribe((zoom) => {
this.store.select((state: ApplicationState) => state.locationState.zoom).pipe(takeUntilDestroyed()).subscribe((zoom) => {
this.zoom = zoom;
this.updateKmMarkers();
});
Expand Down

0 comments on commit b22658a

Please sign in to comment.