Use proper syntax

This commit is contained in:
Phan Huy Tran 2025-01-09 13:58:03 +01:00
parent 8288bb4505
commit 34f04c62cb

View File

@ -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) ?? []]
});
}