Fix: FormArrays were not getting cleared and were basically fucking the whole thing up.
Fix: EmployeeAttendance was borking because the inital employee was null.
This commit is contained in:
@@ -58,6 +58,7 @@ export class UserDetailComponent implements OnInit, AfterViewInit {
|
||||
this.form.controls.name.setValue(item.name);
|
||||
this.form.controls.password.setValue(null);
|
||||
this.form.controls.lockedOut.setValue(item.lockedOut);
|
||||
this.form.controls.roles.clear();
|
||||
this.item.roles.forEach((x) =>
|
||||
this.form.controls.roles.push(
|
||||
new FormGroup({
|
||||
|
||||
Reference in New Issue
Block a user