Commit c78e0665 authored by Georgios Kolokythas's avatar Georgios Kolokythas

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

parent b920109c
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment