diff --git a/dmp-frontend/src/app/ui/dashboard/drafts/drafts.component.ts b/dmp-frontend/src/app/ui/dashboard/drafts/drafts.component.ts index dae5b3da9..8ff1a60e6 100644 --- a/dmp-frontend/src/app/ui/dashboard/drafts/drafts.component.ts +++ b/dmp-frontend/src/app/ui/dashboard/drafts/drafts.component.ts @@ -239,7 +239,7 @@ export class DraftsComponent extends BaseComponent implements OnInit { this.dmpFormGroup = this.dmpModel.buildForm(); if (!isNullOrUndefined(this.formGroup.get('profile').value)) { - this.dmpProfileService.getSingleBlueprint(this.formGroup.get('profile').value.id) + this.dmpProfileService.getSingleBlueprint(this.formGroup.get('profile').value) .pipe(takeUntil(this._destroyed)) .subscribe(result => { this.checkForGrant(result.definition); diff --git a/dmp-frontend/src/app/ui/dashboard/recent-edited-activity/recent-edited-activity.component.ts b/dmp-frontend/src/app/ui/dashboard/recent-edited-activity/recent-edited-activity.component.ts index 3213b5af6..3df35983b 100644 --- a/dmp-frontend/src/app/ui/dashboard/recent-edited-activity/recent-edited-activity.component.ts +++ b/dmp-frontend/src/app/ui/dashboard/recent-edited-activity/recent-edited-activity.component.ts @@ -305,7 +305,7 @@ export class RecentEditedActivityComponent extends BaseComponent implements OnIn this.dmpFormGroup = this.dmpModel.buildForm(); if (!isNullOrUndefined(this.formGroup.get('profile').value)) { - this.dmpProfileService.getSingleBlueprint(this.formGroup.get('profile').value.id) + this.dmpProfileService.getSingleBlueprint(this.formGroup.get('profile').value) .pipe(takeUntil(this._destroyed)) .subscribe(result => { this.checkForGrant(result.definition); diff --git a/dmp-frontend/src/app/ui/dashboard/recent-edited-dmp-activity/recent-edited-dmp-activity.component.ts b/dmp-frontend/src/app/ui/dashboard/recent-edited-dmp-activity/recent-edited-dmp-activity.component.ts index 925149b02..c381774f8 100644 --- a/dmp-frontend/src/app/ui/dashboard/recent-edited-dmp-activity/recent-edited-dmp-activity.component.ts +++ b/dmp-frontend/src/app/ui/dashboard/recent-edited-dmp-activity/recent-edited-dmp-activity.component.ts @@ -258,7 +258,7 @@ export class RecentEditedDmpActivityComponent extends BaseComponent implements O this.dmpFormGroup = this.dmpModel.buildForm(); if (!isNullOrUndefined(this.formGroup.get('profile').value)) { - this.dmpProfileService.getSingleBlueprint(this.formGroup.get('profile').value.id) + this.dmpProfileService.getSingleBlueprint(this.formGroup.get('profile').value) .pipe(takeUntil(this._destroyed)) .subscribe(result => { this.checkForGrant(result.definition); diff --git a/dmp-frontend/src/app/ui/dmp/clone/dmp-clone.component.ts b/dmp-frontend/src/app/ui/dmp/clone/dmp-clone.component.ts index 6c84540a7..7b707bc02 100644 --- a/dmp-frontend/src/app/ui/dmp/clone/dmp-clone.component.ts +++ b/dmp-frontend/src/app/ui/dmp/clone/dmp-clone.component.ts @@ -95,7 +95,7 @@ export class DmpCloneComponent extends BaseComponent implements OnInit { this.formGroup = this.dmp.buildForm(); if (!isNullOrUndefined(this.formGroup.get('profile').value)) { - this.dmpProfileService.getSingleBlueprint(this.formGroup.get('profile').value.id) + this.dmpProfileService.getSingleBlueprint(this.formGroup.get('profile').value) .pipe(takeUntil(this._destroyed)) .subscribe(result => { this.checkForGrant(result.definition); diff --git a/dmp-frontend/src/app/ui/dmp/dmp-editor-blueprint/dmp-editor-blueprint.component.ts b/dmp-frontend/src/app/ui/dmp/dmp-editor-blueprint/dmp-editor-blueprint.component.ts index d4355e9e0..113de61a3 100644 --- a/dmp-frontend/src/app/ui/dmp/dmp-editor-blueprint/dmp-editor-blueprint.component.ts +++ b/dmp-frontend/src/app/ui/dmp/dmp-editor-blueprint/dmp-editor-blueprint.component.ts @@ -176,7 +176,7 @@ export class DmpEditorBlueprintComponent extends CheckDeactivateBaseComponent im this.formGroupRawValue = JSON.parse(JSON.stringify(this.formGroup.getRawValue())); if (!isNullOrUndefined(this.formGroup.get('profile').value)) { - this.dmpProfileService.getSingleBlueprint(this.formGroup.get('profile').value.id) + this.dmpProfileService.getSingleBlueprint(this.formGroup.get('profile').value) .pipe(takeUntil(this._destroyed)) .subscribe(result => { this.selectedDmpBlueprintDefinition = result.definition; @@ -247,7 +247,7 @@ export class DmpEditorBlueprintComponent extends CheckDeactivateBaseComponent im this.formGroupRawValue = JSON.parse(JSON.stringify(this.formGroup.getRawValue())); if (!isNullOrUndefined(this.formGroup.get('profile').value)) { - this.dmpProfileService.getSingleBlueprint(this.formGroup.get('profile').value.id) + this.dmpProfileService.getSingleBlueprint(this.formGroup.get('profile').value) .pipe(takeUntil(this._destroyed)) .subscribe(result => { this.selectedDmpBlueprintDefinition = result.definition; diff --git a/dmp-frontend/src/app/ui/dmp/listing/listing-item/dmp-listing-item.component.ts b/dmp-frontend/src/app/ui/dmp/listing/listing-item/dmp-listing-item.component.ts index 8332bb525..73760cb11 100644 --- a/dmp-frontend/src/app/ui/dmp/listing/listing-item/dmp-listing-item.component.ts +++ b/dmp-frontend/src/app/ui/dmp/listing/listing-item/dmp-listing-item.component.ts @@ -178,7 +178,7 @@ export class DmpListingItemComponent extends BaseComponent implements OnInit { this.dmpFormGroup = this.dmpModel.buildForm(); if (!isNullOrUndefined(this.dmpFormGroup.get('profile').value)) { - this.dmpProfileService.getSingleBlueprint(this.dmpFormGroup.get('profile').value.id) + this.dmpProfileService.getSingleBlueprint(this.dmpFormGroup.get('profile').value) .pipe(takeUntil(this._destroyed)) .subscribe(result => { this.checkForGrant(result.definition); diff --git a/dmp-frontend/src/app/ui/dmp/overview/dmp-overview.component.ts b/dmp-frontend/src/app/ui/dmp/overview/dmp-overview.component.ts index 8a56829b3..59e0be262 100644 --- a/dmp-frontend/src/app/ui/dmp/overview/dmp-overview.component.ts +++ b/dmp-frontend/src/app/ui/dmp/overview/dmp-overview.component.ts @@ -212,7 +212,7 @@ export class DmpOverviewComponent extends BaseComponent implements OnInit { this.formGroup = this.dmpModel.buildForm(); if (!isNullOrUndefined(this.formGroup.get('profile').value)) { - this.dmpProfileService.getSingleBlueprint(this.formGroup.get('profile').value.id) + this.dmpProfileService.getSingleBlueprint(this.formGroup.get('profile').value) .pipe(takeUntil(this._destroyed)) .subscribe(result => { this.checkForGrant(result.definition); diff --git a/dmp-frontend/src/app/ui/dmp/wizard/dmp-wizard.component.ts b/dmp-frontend/src/app/ui/dmp/wizard/dmp-wizard.component.ts index 23b8833d1..1d8c100a7 100644 --- a/dmp-frontend/src/app/ui/dmp/wizard/dmp-wizard.component.ts +++ b/dmp-frontend/src/app/ui/dmp/wizard/dmp-wizard.component.ts @@ -63,7 +63,7 @@ export class DmpWizardComponent extends BaseComponent implements OnInit, IBreadC this.formGroup = this.dmp.buildForm(); if (!isNullOrUndefined(this.formGroup.get('profile').value)) { - this.dmpProfileService.getSingleBlueprint(this.formGroup.get('profile').value.id) + this.dmpProfileService.getSingleBlueprint(this.formGroup.get('profile').value) .pipe(takeUntil(this._destroyed)) .subscribe(result => { this.checkForGrant(result.definition);