From 8bf2e8a4fdc55bbbb0c0c29a0dca2222ceeff215 Mon Sep 17 00:00:00 2001 From: amentis Date: Mon, 13 May 2024 15:07:58 +0300 Subject: [PATCH] add callback error in user profile save --- .../src/app/ui/user-profile/user-profile.component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dmp-frontend/src/app/ui/user-profile/user-profile.component.ts b/dmp-frontend/src/app/ui/user-profile/user-profile.component.ts index 0e9893d41..f9f0f4923 100644 --- a/dmp-frontend/src/app/ui/user-profile/user-profile.component.ts +++ b/dmp-frontend/src/app/ui/user-profile/user-profile.component.ts @@ -152,6 +152,8 @@ export class UserProfileComponent extends BaseComponent implements OnInit, OnDes [nameof(x => x.additionalInfo), nameof(x => x.organization), nameof(x => x.label)].join('.'), [nameof(x => x.additionalInfo), nameof(x => x.organization), nameof(x => x.type), nameof(x => x.id)].join('.'), [nameof(x => x.additionalInfo), nameof(x => x.organization), nameof(x => x.reference)].join('.'), + [nameof(x => x.additionalInfo), nameof(x => x.organization), nameof(x => x.source)].join('.'), + [nameof(x => x.additionalInfo), nameof(x => x.organization), nameof(x => x.sourceType)].join('.'), [nameof(x => x.additionalInfo), nameof(x => x.organization), nameof(x => x.isActive)].join('.'), nameof(x => x.additionalInfo.roleOrganization), nameof(x => x.createdAt), @@ -263,9 +265,7 @@ export class UserProfileComponent extends BaseComponent implements OnInit, OnDes }); // .subscribe(result => window.location.reload()); }, - error => { - console.log(error); - }); + error => this.onCallbackError(error)); } public unlock() {