From 7d73b22f71700c6c23185782e9b7347266056f3f Mon Sep 17 00:00:00 2001 From: Luca Rossetto Date: Sun, 17 Dec 2023 14:13:34 +0100 Subject: [PATCH] Ignoring task validation when there are no tasks in template builder --- .../task-template-editor/task-template-editor.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/template/template-builder/components/task-template-editor/task-template-editor.component.ts b/frontend/src/app/template/template-builder/components/task-template-editor/task-template-editor.component.ts index 89a572090..79112a570 100644 --- a/frontend/src/app/template/template-builder/components/task-template-editor/task-template-editor.component.ts +++ b/frontend/src/app/template/template-builder/components/task-template-editor/task-template-editor.component.ts @@ -106,7 +106,7 @@ export class TaskTemplateEditorComponent implements OnInit, OnDestroy { } public isFormValid(){ - return this.form.valid; + return this.form == undefined || this.form.valid; } public fetchData(){