dmp-editor.component.ts: [Bug fix - #8073] Set value of "status" field of formGroup to DmpStatus.Draft, after reset() is called.

This commit is contained in:
Konstantina Galouni 2022-09-16 10:32:29 +03:00
parent 5087a37e15
commit 4cab6ca160
1 changed files with 1 additions and 0 deletions

View File

@ -1065,6 +1065,7 @@ export class DmpEditorComponent extends CheckDeactivateBaseComponent implements
} }
} else { } else {
this.formGroup.reset(); this.formGroup.reset();
this.formGroup.get("status").setValue(DmpStatus.Draft);
this.formGroup.get('extraProperties').get('visible').setValue(false); this.formGroup.get('extraProperties').get('visible').setValue(false);
this.formGroup.get('extraProperties').get('contact').setValue(this.authService.current().id); this.formGroup.get('extraProperties').get('contact').setValue(this.authService.current().id);
this.formGroup.get('associatedUsers').setValue([]); this.formGroup.get('associatedUsers').setValue([]);