Currently in the process of updating my Angular application from version 7 to version 8. Upon running ng serve
, I encounter the following error:
Error TS2739: Type '{}' is missing the following properties from type 'EmployeeModel': statut, hasLaws, disablePlanningManagerOrLeaderOrFixe
303 this.employee = {...this.employee, ...entry[1]};
Within my Typescript file:
getEmployeeDetail() {
this.setIdSecuriteSocialAndIdBanqueToEmployeeBefore();
Object.entries(this.infosPersonnellesForm.value).forEach(entry => {
if (entry[0] === 'coordonnees' || entry[0] === 'divers') {
this.employee = {...this.employee, ...entry[1]};
} else {
this.employee[entry[0]] = entry[1];
}
});
this.setIdSecuriteSocialAndIdBanqueToEmployeeAfter();
}
Seeking assistance on how to resolve this issue. Any help would be greatly appreciated. Thank you.