Skip to content

Commit 379d78e

Browse files
committed
Fix infinite loop when deleting an EPerson
The reset() call is no longer needed in this case, since invalidation on delete is handled within the data service We still need this method to properly update the page after creating a new EPerson
1 parent 6f9d310 commit 379d78e

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

src/app/access-control/epeople-registry/epeople-registry.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,6 @@ export class EPeopleRegistryComponent implements OnInit, OnDestroy {
238238
this.epersonService.deleteEPerson(ePerson).pipe(getFirstCompletedRemoteData()).subscribe((restResponse: RemoteData<NoContent>) => {
239239
if (restResponse.hasSucceeded) {
240240
this.notificationsService.success(this.translateService.get(this.labelPrefix + 'notification.deleted.success', {name: ePerson.name}));
241-
this.reset();
242241
} else {
243242
this.notificationsService.error('Error occured when trying to delete EPerson with id: ' + ePerson.id + ' with code: ' + restResponse.statusCode + ' and message: ' + restResponse.errorMessage);
244243
}

0 commit comments

Comments
 (0)