mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-16 22:43:03 +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
|
* This method will initialise the page
|
||||||
*/
|
*/
|
||||||
initialisePage() {
|
initialisePage() {
|
||||||
this.subs.push(this.epersonService.findById(this.route.snapshot.params.id).subscribe((ePersonRD: RemoteData<EPerson>) => {
|
if (this.route.snapshot.params.id) {
|
||||||
this.epersonService.editEPerson(ePersonRD.payload);
|
this.subs.push(this.epersonService.findById(this.route.snapshot.params.id).subscribe((ePersonRD: RemoteData<EPerson>) => {
|
||||||
}));
|
this.epersonService.editEPerson(ePersonRD.payload);
|
||||||
|
}));
|
||||||
|
}
|
||||||
this.firstName = new DynamicInputModel({
|
this.firstName = new DynamicInputModel({
|
||||||
id: 'firstName',
|
id: 'firstName',
|
||||||
label: this.translateService.instant(`${this.messagePrefix}.firstName`),
|
label: this.translateService.instant(`${this.messagePrefix}.firstName`),
|
||||||
|
Reference in New Issue
Block a user