mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
Fix adf is not defined for customStencil (#2795)
This commit is contained in:
@@ -68,6 +68,10 @@ export class FormFieldComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
const w: any = window;
|
||||
if (w.adf === undefined) {
|
||||
w.adf = {};
|
||||
}
|
||||
let originalField = this.getField();
|
||||
if (originalField) {
|
||||
let customTemplate = this.field.form.customFieldTemplates[originalField.type];
|
||||
|
Reference in New Issue
Block a user