diff --git a/packages/geo/src/lib/directions/directions-form/directions-form.component.ts b/packages/geo/src/lib/directions/directions-form/directions-form.component.ts index c10205da54..aa78e8f6f7 100644 --- a/packages/geo/src/lib/directions/directions-form/directions-form.component.ts +++ b/packages/geo/src/lib/directions/directions-form/directions-form.component.ts @@ -127,21 +127,12 @@ export class DirectionsFormComponent implements OnInit, OnDestroy { ]) }); - if (!this.directionsFormService.getStops()) { - this.map.status$.pipe(take(1)).subscribe(() => { - this.conditionalInit(); - }); - } else { - this.conditionalInit(); - } - - } + setTimeout(() => { + this.initStores(); + this.initOlInteraction(); + }, 1); - private conditionalInit() { - this.initStores(); - this.initOlInteraction(); this.subscribeToFormChange(); - this.routesQueries$$.push( this.stream$ .pipe(