Skip to content

Commit

Permalink
SHIBUI-816 Fixed issue with navigation after cancelling filter changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathis committed Aug 29, 2018
1 parent 60e1c15 commit f100f5d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ui/src/app/metadata/filter/effect/filter.effect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,10 @@ export class FilterEffects {
@Effect({ dispatch: false })
cancelChanges$ = this.actions$.pipe(
ofType<CancelCreateFilter>(FilterActionTypes.CANCEL_CREATE_FILTER),
combineLatest(this.store.select(fromProvider.getSelectedProviderId).pipe(skipWhile(id => !id))),
tap(([filter, provider]) => this.router.navigate(['/', 'metadata', 'provider', provider, 'filters']))
withLatestFrom(this.store.select(fromProvider.getSelectedProviderId).pipe(skipWhile(id => !id))),
tap(([filter, provider]) => {
this.router.navigate(['/', 'metadata', 'provider', provider, 'filters']);
})
);

constructor(
Expand Down

0 comments on commit f100f5d

Please sign in to comment.