Commit c78e0665 authored by Georgios Kolokythas's avatar Georgios Kolokythas
Browse files

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

parent b920109c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;