File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ import {of} from 'rxjs/observable/of';
14
14
import { fromPromise } from 'rxjs/observable/fromPromise' ;
15
15
import { combineLatest } from 'rxjs/observable/combineLatest' ;
16
16
import { switchMap } from 'rxjs/operator/switchMap' ;
17
- import { mergeMap } from 'rxjs/operator/mergeMap' ;
18
17
import { map } from 'rxjs/operator/map' ;
19
18
import { concat } from 'rxjs/operator/concat' ;
20
19
@@ -223,7 +222,7 @@ export class UISrefStatus {
223
222
224
223
// Calculate the status of each UISref based on the transition event.
225
224
// Reduce the statuses (if multiple) by or-ing each flag.
226
- this . _subscription = mergeMap . call ( transEvents$ , ( evt : TransEvt ) => {
225
+ this . _subscription = switchMap . call ( transEvents$ , ( evt : TransEvt ) => {
227
226
return map . call ( targetStates$ , ( targets : TargetState [ ] ) => {
228
227
let statuses : SrefStatus [ ] = targets . map ( target => getSrefStatus ( evt , target ) ) ;
229
228
return statuses . reduce ( mergeSrefStatus ) ;
You can’t perform that action at this time.
0 commit comments