mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 15:33:04 +00:00
fix issue where a submit emitted from the edit relationship modal wouldn't arrive in the edit relationships component
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { distinctUntilChanged, take, withLatestFrom } from 'rxjs/operators';
|
||||
import { distinctUntilChanged, take, withLatestFrom, delay } from 'rxjs/operators';
|
||||
import { DOCUMENT, isPlatformBrowser } from '@angular/common';
|
||||
import {
|
||||
AfterViewInit,
|
||||
@@ -114,7 +114,10 @@ export class AppComponent implements OnInit, AfterViewInit {
|
||||
}
|
||||
|
||||
ngAfterViewInit() {
|
||||
this.router.events.subscribe((event) => {
|
||||
this.router.events.pipe(
|
||||
// delay(0) to prevent "Expression has changed after it was checked" errors
|
||||
delay(0)
|
||||
).subscribe((event) => {
|
||||
if (event instanceof NavigationStart) {
|
||||
distinctNext(this.isRouteLoading$, true);
|
||||
} else if (
|
||||
|
Reference in New Issue
Block a user