diff --git a/src/app/pages/criminal-records-admin/criminal-records-admin.component.ts b/src/app/pages/criminal-records-admin/criminal-records-admin.component.ts index 6abb8c1..4a12604 100644 --- a/src/app/pages/criminal-records-admin/criminal-records-admin.component.ts +++ b/src/app/pages/criminal-records-admin/criminal-records-admin.component.ts @@ -639,6 +639,9 @@ export class CriminalRecordsAdminComponent implements OnInit { if (!e) { this.warningTypesDetails = this.warningTypesDetailsCopy this.warningTypes = this.warningTypesCopy + this.validateForm.patchValue({ + type: null, + }); return } this.warningLevels.forEach(element => { diff --git a/src/app/pages/criminal-records/criminal-records.component.ts b/src/app/pages/criminal-records/criminal-records.component.ts index 1aadbfd..952789c 100644 --- a/src/app/pages/criminal-records/criminal-records.component.ts +++ b/src/app/pages/criminal-records/criminal-records.component.ts @@ -576,6 +576,9 @@ export class CriminalRecordsComponent implements OnInit { if (!e) { this.warningTypesDetails = this.warningTypesDetailsCopy this.warningTypes = this.warningTypesCopy + this.validateForm.patchValue({ + type: null, + }); return } this.warningLevels.forEach(element => {