87968: Minor code changes to pass lint

This commit is contained in:
Yura Bondarenko
2022-03-25 12:36:14 +01:00
parent bb51609af9
commit 99c41b9e80
27 changed files with 39 additions and 41 deletions

View File

@@ -46,7 +46,7 @@ export abstract class ThemedComponent<T> implements OnInit, OnDestroy, OnChanges
// if an input or output has changed
if (this.inAndOutputNames.some((name: any) => hasValue(changes[name]))) {
this.connectInputsAndOutputs();
if (this.compRef?.instance && 'ngOnChanges' in this.compRef?.instance) {
if (this.compRef?.instance && 'ngOnChanges' in this.compRef.instance) {
(this.compRef.instance as any).ngOnChanges(changes);
}
}