mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-15 14:03:06 +00:00
117287: Prevent /api/eperson/epersons/undefined from being fired on the create ePerson page
(cherry picked from commit 0cb5b76159
)
This commit is contained in:
@@ -223,9 +223,11 @@ export class EPersonFormComponent implements OnInit, OnDestroy {
|
||||
* This method will initialise the page
|
||||
*/
|
||||
initialisePage() {
|
||||
if (this.route.snapshot.params.id) {
|
||||
this.subs.push(this.epersonService.findById(this.route.snapshot.params.id).subscribe((ePersonRD: RemoteData<EPerson>) => {
|
||||
this.epersonService.editEPerson(ePersonRD.payload);
|
||||
}));
|
||||
}
|
||||
this.firstName = new DynamicInputModel({
|
||||
id: 'firstName',
|
||||
label: this.translateService.instant(`${this.messagePrefix}.firstName`),
|
||||
|
Reference in New Issue
Block a user