Fixes bug on not reseting "Grant" when changing "Funder" on "New DMP (Wizard)" view.
This commit is contained in:
parent
0e8b905fab
commit
e1af4eacbe
|
@ -79,7 +79,10 @@ export class GrantEditorWizardComponent extends BaseComponent implements OnInit,
|
||||||
this.grantformGroup.get('existGrant').disable();
|
this.grantformGroup.get('existGrant').disable();
|
||||||
}
|
}
|
||||||
|
|
||||||
this.funderFormGroup.statusChanges.pipe(takeUntil(this._destroyed)).subscribe(x => {
|
this.funderFormGroup.statusChanges
|
||||||
|
.pipe(takeUntil(this._destroyed))
|
||||||
|
.subscribe(x => {
|
||||||
|
this.grantformGroup.reset();
|
||||||
if (x == 'INVALID') {
|
if (x == 'INVALID') {
|
||||||
this.grantformGroup.get('existGrant').reset();
|
this.grantformGroup.get('existGrant').reset();
|
||||||
this.grantformGroup.get('label').reset();
|
this.grantformGroup.get('label').reset();
|
||||||
|
|
Loading…
Reference in New Issue