From b3ebeb8a31d8c27f9fb8207db7f5c685cc6c95af Mon Sep 17 00:00:00 2001
From: Alex ORLUC <alex.orluc@maarch.org>
Date: Fri, 17 Jan 2020 18:22:39 +0100
Subject: [PATCH] FEAT #10633 TIME 0:10 fix if

---
 .../validate-avis-parallel-action.component.ts               | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/frontend/app/actions/avis-parallel-validate-action/validate-avis-parallel-action.component.ts b/src/frontend/app/actions/avis-parallel-validate-action/validate-avis-parallel-action.component.ts
index 0cabda374cf..08fa0fa1661 100644
--- a/src/frontend/app/actions/avis-parallel-validate-action/validate-avis-parallel-action.component.ts
+++ b/src/frontend/app/actions/avis-parallel-validate-action/validate-avis-parallel-action.component.ts
@@ -33,7 +33,7 @@ export class ValidateAvisParallelComponent implements AfterViewInit {
 
     availableRoles: any[] = [];
 
-    @ViewChild('noteEditor', { static: true }) noteEditor: NoteEditorComponent;
+    @ViewChild('noteEditor', { static: false }) noteEditor: NoteEditorComponent;
     @ViewChild('appAvisWorkflow', { static: false }) appAvisWorkflow: AvisWorkflowComponent;
 
     constructor(
@@ -111,7 +111,7 @@ export class ValidateAvisParallelComponent implements AfterViewInit {
         ).subscribe();
     }
 
-    isValidAction() {
+    isValidAction() {     
         if (this.data.resIds.length === 1) {
             if (!this.noResourceToProcess && this.noteEditor !== undefined && this.appAvisWorkflow !== undefined && !this.appAvisWorkflow.emptyWorkflow() && !this.appAvisWorkflow.workflowEnd() && !this.functions.empty(this.noteEditor.getNoteContent()) && !this.functions.empty(this.functions.formatDateObjectToFrenchDateString(this.opinionLimitDate))) {
                 return true;
@@ -125,6 +125,5 @@ export class ValidateAvisParallelComponent implements AfterViewInit {
                 return false;
             }
         }
-        
     }
 }
-- 
GitLab