diff --git a/dmp-frontend/src/app/ui/dmp/editor/grant-tab/grant-tab.component.ts b/dmp-frontend/src/app/ui/dmp/editor/grant-tab/grant-tab.component.ts index 9a9e08f34..843176570 100644 --- a/dmp-frontend/src/app/ui/dmp/editor/grant-tab/grant-tab.component.ts +++ b/dmp-frontend/src/app/ui/dmp/editor/grant-tab/grant-tab.component.ts @@ -221,10 +221,10 @@ export class GrantTabComponent extends BaseComponent implements OnInit { funderValueChanged(funder: any) { if ((funder.label !== "" && funder.label != null && funder.label !== undefined) || (funder.existFunder !== null && funder.existFunder !== undefined && funder.existFunder.id !== undefined)) { + this.grantformGroup.reset(); this.grantformGroup.enable(); this.setGrantValidators(); - } - else { + } else { this.grantformGroup.reset(); this.grantformGroup.disable(); if (this.isCreateNew) this.isCreateNew = !this.isCreateNew;