build(router): enable bazel tests for router (#21053)
Bazel runs on newer version of RxJs than is installed in Yarn. The never version subclasses `EmptyError` in a different way which fails the `instanceof` check. This change makes the `instanceof` check more robust with respect to `EmptyError`. PR Close #21053
This commit is contained in:
@ -166,7 +166,7 @@ class ApplyRedirects {
|
||||
const concattedProcessedRoutes$ = concatAll.call(processedRoutes$);
|
||||
const first$ = first.call(concattedProcessedRoutes$, (s: any) => !!s);
|
||||
return _catch.call(first$, (e: any, _: any): Observable<UrlSegmentGroup> => {
|
||||
if (e instanceof EmptyError) {
|
||||
if (e instanceof EmptyError || e.name === 'EmptyError') {
|
||||
if (this.noLeftoversInUrl(segmentGroup, segments, outlet)) {
|
||||
return of (new UrlSegmentGroup([], {}));
|
||||
}
|
||||
|
Reference in New Issue
Block a user