File tree Expand file tree Collapse file tree
src/app/notifications/suggestion-targets Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ import {
1919 RetrieveAuthenticatedEpersonSuccessAction ,
2020} from '../../core/auth/auth.actions' ;
2121import { PaginatedList } from '../../core/data/paginated-list.model' ;
22- import { EPerson } from '../../core/eperson/models/eperson.model' ;
2322import { SuggestionTarget } from '../../core/notifications/suggestions/models/suggestion-target.model' ;
2423import { NotificationsService } from '../../shared/notifications/notifications.service' ;
2524import { SuggestionsService } from '../suggestions.service' ;
@@ -89,10 +88,10 @@ export class SuggestionTargetsEffects {
8988 refreshUserSuggestionsAction$ = createEffect ( ( ) => this . actions$ . pipe (
9089 ofType ( SuggestionTargetActionTypes . REFRESH_USER_SUGGESTIONS ) ,
9190 switchMap ( ( ) => {
92- return this . store$ . select ( ( state : any ) => state . core . auth . user )
91+ return this . store$ . select ( ( state : any ) => state . core . auth . userId )
9392 . pipe (
94- switchMap ( ( user : EPerson ) => {
95- return this . suggestionsService . retrieveCurrentUserSuggestions ( user . uuid )
93+ switchMap ( ( userId : string ) => {
94+ return this . suggestionsService . retrieveCurrentUserSuggestions ( userId )
9695 . pipe (
9796 map ( ( suggestionTargets : SuggestionTarget [ ] ) => new AddUserSuggestionsAction ( suggestionTargets ) ) ,
9897 catchError ( ( error : unknown ) => {
You can’t perform that action at this time.
0 commit comments