Fixes bug on DMP editor not reseting "Grant" when selecting a new "Funder".

This commit is contained in:
gkolokythas 2020-01-15 16:24:10 +02:00
parent b920109ca4
commit c78e066578
1 changed files with 2 additions and 2 deletions

View File

@ -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;