From 34f04c62cbccefba3961427d2ca76425a33796f8 Mon Sep 17 00:00:00 2001 From: Phan Huy Tran Date: Thu, 9 Jan 2025 13:58:03 +0100 Subject: [PATCH] Use proper syntax --- src/app/employee/edit/edit.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/employee/edit/edit.component.ts b/src/app/employee/edit/edit.component.ts index 6cacb51..769a938 100644 --- a/src/app/employee/edit/edit.component.ts +++ b/src/app/employee/edit/edit.component.ts @@ -57,7 +57,7 @@ export class EditComponent implements OnInit { postcode: [this.employee.postcode, [Validators.required, Validators.minLength(5), Validators.maxLength(5)]], city: [this.employee.city, Validators.required], phone: [this.employee.phone, Validators.required], - qualifications: [this.employee.skillSet?.map(skill => skill.id) || []] + qualifications: [this.employee.skillSet?.map(skill => skill.id) ?? []] }); }