diff --git a/src/app/components/qualifikation-form/qualifikation-form.component.ts b/src/app/components/qualifikation-form/qualifikation-form.component.ts index aad7492..03c1353 100644 --- a/src/app/components/qualifikation-form/qualifikation-form.component.ts +++ b/src/app/components/qualifikation-form/qualifikation-form.component.ts @@ -55,6 +55,9 @@ export class QualifikationFormComponent { addEmployee() { const employeeId = Number(this.skillForm.get("newEmployee")?.value); + if (!employeeId) { + return; + } const employee = this.addableEmployees.find(emp => emp.id === employeeId); if (employee) {