Skip to content

Commit fe15b20

Browse files
committed
fix(router): use correct rxjs import path
fixes #42
1 parent 25f5653 commit fe15b20

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

projects/router/src/lib/matomo-router.service.ts

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,25 @@ import { Event, NavigationEnd, Router } from '@angular/router';
33
import { MatomoTracker } from '@ngx-matomo/tracker';
44
import {
55
combineLatest,
6-
concatMap,
7-
defaultIfEmpty,
86
forkJoin,
97
from,
108
identity,
11-
map,
12-
mapTo,
139
MonoTypeOperatorFunction,
1410
Observable,
1511
of,
12+
} from 'rxjs';
13+
import {
14+
concatMap,
15+
defaultIfEmpty,
16+
delay,
17+
distinctUntilKeyChanged,
18+
filter,
19+
map,
20+
mapTo,
21+
switchMap,
1622
take,
1723
tap,
18-
} from 'rxjs';
19-
import { delay, distinctUntilKeyChanged, filter, switchMap } from 'rxjs/operators';
24+
} from 'rxjs/operators';
2025
import {
2126
ExclusionConfig,
2227
INTERNAL_ROUTER_CONFIGURATION,
@@ -108,9 +113,9 @@ export class MatomoRouter {
108113
const result$ = result == null ? of(undefined) : from(result);
109114

110115
// Must not be an empty observable (otherwise forkJoin would complete without waiting others)
111-
return result$.pipe(take(1), defaultIfEmpty(undefined));
116+
return result$.pipe(take(1), defaultIfEmpty(undefined as void));
112117
})
113-
).pipe(mapTo(undefined), defaultIfEmpty(undefined));
118+
).pipe(mapTo(undefined), defaultIfEmpty(undefined as void));
114119
} else {
115120
return of(undefined);
116121
}

0 commit comments

Comments
 (0)