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:
@@ -5,13 +5,12 @@ import { EmployeeAttendanceItem } from './employee-attendance-item';
|
||||
export class EmployeeAttendance {
|
||||
startDate: string;
|
||||
finishDate: string;
|
||||
employee: Employee;
|
||||
employee?: Employee;
|
||||
body: EmployeeAttendanceItem[];
|
||||
|
||||
public constructor(init?: Partial<EmployeeAttendance>) {
|
||||
this.startDate = '';
|
||||
this.finishDate = '';
|
||||
this.employee = new Employee();
|
||||
this.body = [];
|
||||
Object.assign(this, init);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user