Fix selecting nothing #81
1 changed files with 3 additions and 0 deletions
|
@ -55,6 +55,9 @@ export class QualifikationFormComponent {
|
||||||
|
|
||||||
addEmployee() {
|
addEmployee() {
|
||||||
const employeeId = Number(this.skillForm.get("newEmployee")?.value);
|
const employeeId = Number(this.skillForm.get("newEmployee")?.value);
|
||||||
|
if (!employeeId) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
const employee = this.addableEmployees.find(emp => emp.id === employeeId);
|
const employee = this.addableEmployees.find(emp => emp.id === employeeId);
|
||||||
|
|
||||||
if (employee) {
|
if (employee) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue