Skip to content

Commit cdd2263

Browse files
committed
[DSC-1864] Fix issue with reload of search page when navigating with route param
1 parent e7027a2 commit cdd2263

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/app/app.component.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { delay, distinctUntilChanged, map, switchMap, take, withLatestFrom } from 'rxjs/operators';
1+
import { distinctUntilChanged, map, switchMap, take, withLatestFrom } from 'rxjs/operators';
22
import { DOCUMENT, isPlatformBrowser } from '@angular/common';
33
import {
44
AfterViewInit,
@@ -128,8 +128,6 @@ export class AppComponent implements OnInit, AfterViewInit {
128128

129129
ngAfterViewInit() {
130130
this.router.events.pipe(
131-
// delay(0) to prevent "Expression has changed after it was checked" errors
132-
delay(0),
133131
switchMap((event: RouterEvent) => this.routeService.getCurrentUrl().pipe(
134132
take(1),
135133
map((currentUrl) => [currentUrl, event])

0 commit comments

Comments
 (0)