Removed unused code regarding validation inside edit-employee

This commit is contained in:
Erik Tiekstra
2021-09-22 10:00:59 +02:00
parent dd5bb7dd5d
commit dfa8205817

View File

@@ -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) {