mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[AAE-7241] fix eslint warnings for Extensions project (#7491)
* fix eslint warnings for Extensions project * fix production mode compilation
This commit is contained in:
@@ -63,6 +63,13 @@ export class DynamicExtensionComponent implements OnChanges, OnDestroy {
|
||||
this.proxy('ngOnChanges', changes);
|
||||
}
|
||||
|
||||
ngOnDestroy() {
|
||||
if (this.componentCreated()) {
|
||||
this.componentRef.destroy();
|
||||
this.componentRef = null;
|
||||
}
|
||||
}
|
||||
|
||||
private loadComponent() {
|
||||
const componentType = this.extensions.getComponentById<ExtensionComponent>(this.id);
|
||||
if (componentType) {
|
||||
@@ -76,13 +83,6 @@ export class DynamicExtensionComponent implements OnChanges, OnDestroy {
|
||||
}
|
||||
}
|
||||
|
||||
ngOnDestroy() {
|
||||
if (this.componentCreated()) {
|
||||
this.componentRef.destroy();
|
||||
this.componentRef = null;
|
||||
}
|
||||
}
|
||||
|
||||
private updateInstance() {
|
||||
if (this.componentCreated()) {
|
||||
this.componentRef.instance.data = this.data;
|
||||
|
Reference in New Issue
Block a user