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:
1 parent
c7bc379032
commit
4b97c4228a
9 files changed
+22
-15
No files matched your search
@@ -45,7 +45,7 @@ export class RoleDetailComponent implements OnInit, AfterViewInit {
|
||||
this.item = data.item;
|
||||
|
||||
this.form.controls.name.setValue(this.item.name);
|
||||
this.form.controls.permissions.reset();
|
||||
this.form.controls.permissions.clear();
|
||||
this.item.permissions.forEach((x) =>
|
||||
this.form.controls.permissions.push(
|
||||
new FormGroup({
|
||||
|
||||
Reference in new issue
Block a user