Commit dd16f684 authored by Emiliano Balbuena's avatar Emiliano Balbuena

(fix): Inject on featured-content component

1 merge request!469(WIP) Fix/comments media gallery 1601
Pipeline #75463503 passed with stages
in 45 minutes and 18 seconds
......@@ -34,7 +34,7 @@ export class FeaturedContentComponent implements OnInit {
protected componentFactoryResolver: ComponentFactoryResolver,
protected cd: ChangeDetectorRef,
protected clientMetaService: ClientMetaService,
@SkipSelf() injector: Injector,
@SkipSelf() protected injector: Injector,
) {
this.clientMetaService
.inherit(injector)
......@@ -76,7 +76,7 @@ export class FeaturedContentComponent implements OnInit {
if (component) {
const componentFactory = this.componentFactoryResolver.resolveComponentFactory(component);
const componentRef: ComponentRef<any> = this.dynamicHost.viewContainerRef.createComponent(componentFactory);
const componentRef: ComponentRef<any> = this.dynamicHost.viewContainerRef.createComponent(componentFactory, void 0, this.injector);
injector.call(this, componentRef, this.entity);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment