Fixes bug on DMP editor not reseting "Grant" when selecting a new "Funder".
This commit is contained in:
parent
b920109ca4
commit
c78e066578
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue