Skip to content
Snippets Groups Projects
Commit 72ea6f15 authored by Florent Poittevin's avatar Florent Poittevin
Browse files

fix: infinite loop on admin person page

parent 9c32b3ca
No related branches found
No related tags found
No related merge requests found
......@@ -59,7 +59,7 @@ export interface AdminPersonStateModel extends ResourceStateModel<PersonExtended
},
children: [
AdminPersonOrgUnitRoleState,
AdminPersonInstitutionsState
AdminPersonInstitutionsState,
],
})
export class AdminPersonState extends ResourceState<PersonExtended> {
......@@ -133,13 +133,6 @@ export class AdminPersonState extends ResourceState<PersonExtended> {
this.actions$.pipe(ofActionCompleted(SharedInstitutionAction.GetAllFail)),
],
},
{
action: new AdminPersonAction.LoadResource(),
subActionCompletions: [
this.actions$.pipe(ofActionCompleted(AdminPersonAction.LoadResourceSuccess)),
this.actions$.pipe(ofActionCompleted(AdminPersonAction.LoadResourceFail)),
]
}
]).subscribe(success => {
if (success) {
ctx.dispatch(new AdminPersonAction.LoadResourceSuccess(action));
......@@ -203,8 +196,8 @@ export class AdminPersonState extends ResourceState<PersonExtended> {
subActionCompletions: [
this.actions$.pipe(ofActionCompleted(AdminPersonInstitutionsAction.UpdateSuccess)),
this.actions$.pipe(ofActionCompleted(AdminPersonInstitutionsAction.UpdateFail)),
]
}
],
},
]);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment