Use proper syntax
This commit is contained in:
parent
8288bb4505
commit
34f04c62cb
@ -57,7 +57,7 @@ export class EditComponent implements OnInit {
|
|||||||
postcode: [this.employee.postcode, [Validators.required, Validators.minLength(5), Validators.maxLength(5)]],
|
postcode: [this.employee.postcode, [Validators.required, Validators.minLength(5), Validators.maxLength(5)]],
|
||||||
city: [this.employee.city, Validators.required],
|
city: [this.employee.city, Validators.required],
|
||||||
phone: [this.employee.phone, Validators.required],
|
phone: [this.employee.phone, Validators.required],
|
||||||
qualifications: [this.employee.skillSet?.map(skill => skill.id) || []]
|
qualifications: [this.employee.skillSet?.map(skill => skill.id) ?? []]
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user