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:
tanshu committed 2022-07-24 18:25:02 +05:30
1 parent c7bc379032
commit 4b97c4228a
9 files changed
+22 -15

No files matched your search

@@ -111,7 +111,7 @@ export class SettingsComponent implements OnInit {
showLockInformation(info: LockInfo[]) {
this.lockInformation = info;
this.lockInfoForm.controls.accountTypes.reset();
this.lockInfoForm.controls.accountTypes.clear();
this.accountTypes.forEach((x) =>
this.lockInfoForm.controls.accountTypes.push(
new FormGroup({
@@ -119,7 +119,7 @@ export class SettingsComponent implements OnInit {
}),
),
);
this.lockInfoForm.controls.voucherTypes.reset();
this.lockInfoForm.controls.voucherTypes.clear();
this.voucherTypes.forEach((x) =>
this.lockInfoForm.controls.voucherTypes.push(
new FormGroup({