Skip to content

Commit

Permalink
SHIBUI-1013 Fixed issue with version being outdated after saving new …
Browse files Browse the repository at this point in the history
…filter
  • Loading branch information
rmathis committed Nov 27, 2018
1 parent 0c2978a commit a50380f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ui/src/app/metadata/filter/effect/collection.effect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,14 @@ export class FilterCollectionEffects {
tap(([filter, provider]) => this.router.navigate(['/', 'metadata', 'provider', provider, 'filters']))
);

@Effect()
addFilterSuccessReloadParent$ = this.actions$.pipe(
ofType<AddFilterSuccess>(FilterCollectionActionTypes.ADD_FILTER_SUCCESS),
map(action => action.payload),
withLatestFrom(this.store.select(fromProvider.getSelectedProviderId).pipe(skipWhile(id => !id))),
map(([filter, provider]) => new SelectProviderRequest(provider))
);

@Effect()
updateFilter$ = this.actions$.pipe(
ofType<UpdateFilterRequest>(FilterCollectionActionTypes.UPDATE_FILTER_REQUEST),
Expand Down

0 comments on commit a50380f

Please sign in to comment.