Removed unused code regarding validation inside edit-employee
This commit is contained in:
@@ -203,13 +203,6 @@ export class EditEmployeeFormComponent implements OnInit, OnChanges {
|
||||
|
||||
this._submitted = true;
|
||||
|
||||
if (!roles.length && saveWithoutRoles) {
|
||||
this.utforandeVerksamheterFormControl.clearValidators();
|
||||
this.utforandeVerksamheterFormControl.updateValueAndValidity();
|
||||
this.tjansterFormControl.clearValidators();
|
||||
this.tjansterFormControl.updateValueAndValidity();
|
||||
}
|
||||
|
||||
this.editEmployeeFormGroup.markAllAsTouched();
|
||||
|
||||
if (this.editEmployeeFormGroup.invalid) {
|
||||
|
||||
Reference in New Issue
Block a user