Skip to content

Commit

Permalink
fix action type error
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancescoMolinaro committed Jan 16, 2024
1 parent 20efab2 commit fb1d20a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,4 +152,5 @@ export type SuggestionTargetsActions
| ClearSuggestionTargetsAction
| MarkUserSuggestionsAsVisitedAction
| RetrieveTargetsBySourceAction
| RetrieveAllTargetsErrorAction;
| RetrieveAllTargetsErrorAction
| RefreshUserSuggestionsAction;
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export class SuggestionTargetsEffects {
/**
* Fetch the current user suggestion
*/
RefreshUserSuggestionsAction = createEffect(() => this.actions$.pipe(
refreshUserSuggestionsAction$ = createEffect(() => this.actions$.pipe(
ofType(SuggestionTargetActionTypes.REFRESH_USER_SUGGESTIONS),
switchMap((action: RefreshUserSuggestionsAction) => {
return this.store$.select((state: any) => state.core.auth.userId)
Expand All @@ -72,11 +72,11 @@ export class SuggestionTargetsEffects {
.pipe(
map((suggestionTargets: SuggestionTarget[]) => new AddUserSuggestionsAction(suggestionTargets)),
catchError((errors) => of(errors))
);
);
}),
catchError((errors) => of(errors))
);
})));
})), { dispatch: false });

/**
* Initialize the effect class variables.
Expand Down

0 comments on commit fb1d20a

Please sign in to comment.