mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-06-30 18:15:11 +00:00
Fix adf is not defined for customStencil (#2795)
This commit is contained in:
parent
904b930009
commit
23c912989a
@ -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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user