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 0cabda374cf68d1635b58c333b9e9108a819f99b..08fa0fa1661bce3c07557ecdd669e613caeb7d5e 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; } } - } }