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';
1414import { fromPromise } from 'rxjs/observable/fromPromise' ;
1515import { combineLatest } from 'rxjs/observable/combineLatest' ;
1616import { switchMap } from 'rxjs/operator/switchMap' ;
17- import { mergeMap } from 'rxjs/operator/mergeMap' ;
1817import { map } from 'rxjs/operator/map' ;
1918import { concat } from 'rxjs/operator/concat' ;
2019
@@ -223,7 +222,7 @@ export class UISrefStatus {
223222
224223 // Calculate the status of each UISref based on the transition event.
225224 // 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 ) => {
227226 return map . call ( targetStates$ , ( targets : TargetState [ ] ) => {
228227 let statuses : SrefStatus [ ] = targets . map ( target => getSrefStatus ( evt , target ) ) ;
229228 return statuses . reduce ( mergeSrefStatus ) ;
You can’t perform that action at this time.
0 commit comments