From 72ea6f154483a31a7088b3b4df8dbb9ec28a8b47 Mon Sep 17 00:00:00 2001 From: Florent Poittevin <florent.poittevin@unige.ch> Date: Fri, 25 Oct 2019 12:05:23 +0200 Subject: [PATCH] fix: infinite loop on admin person page --- .../admin/person/stores/admin-person.state.ts | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/app/features/admin/person/stores/admin-person.state.ts b/src/app/features/admin/person/stores/admin-person.state.ts index be9206d30..5d0107763 100644 --- a/src/app/features/admin/person/stores/admin-person.state.ts +++ b/src/app/features/admin/person/stores/admin-person.state.ts @@ -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)), - ] - } + ], + }, ]); } } -- GitLab