diff --git a/src/frontend/app/administration/template/templateFileEditorModal/template-file-editor-modal.component.ts b/src/frontend/app/administration/template/templateFileEditorModal/template-file-editor-modal.component.ts index 03b3c7e96ffd2d445c3d169db33fc3db403668d3..6302aca25b0b3a7be0718c5fab5a968983e1d519 100644 --- a/src/frontend/app/administration/template/templateFileEditorModal/template-file-editor-modal.component.ts +++ b/src/frontend/app/administration/template/templateFileEditorModal/template-file-editor-modal.component.ts @@ -18,13 +18,12 @@ export class TemplateFileEditorModalComponent implements OnInit { file: any = null; editorType: any = null; - @ViewChild('onlyofficeViewer', { static: true }) onlyofficeViewer: EcplOnlyofficeViewerComponent; + @ViewChild('onlyofficeViewer', { static: false }) onlyofficeViewer: EcplOnlyofficeViewerComponent; @ViewChild('collaboraOnlineViewer', { static: false }) collaboraOnlineViewer: CollaboraOnlineViewerComponent; constructor(public dialogRef: MatDialogRef<TemplateFileEditorModalComponent>, @Inject(MAT_DIALOG_DATA) public data: any) { } ngOnInit(): void { - console.log(this.data); this.editorOptions = this.data.editorOptions; this.file = this.data.file; this.editorType = this.data.editorType;