fix: add noop to catch routing errors

pull/4741/head
Arman Ozak 5 years ago
parent 14b8b1d4d3
commit 2c4357a99a

@ -1,3 +1,4 @@
import { noop } from '@abp/ng.core';
import { Injectable, NgZone } from '@angular/core';
import { Router } from '@angular/router';
import { Action, createSelector, Selector, State, StateContext } from '@ngxs/store';
@ -42,7 +43,7 @@ export class ReplaceableComponentsState {
this.router.navigated = false;
this.ngZone.run(async () => {
await this.router.navigateByUrl(this.router.url).catch();
await this.router.navigateByUrl(this.router.url).catch(noop);
setRouteReuse(shouldReuseRoute);
});
}

Loading…
Cancel
Save