Fix for error with component factory after migration to angular v13

This commit is contained in:
piotrpekala7 2021-11-07 18:32:34 +01:00
parent 8503a17187
commit c808477914
2 changed files with 2 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -220,8 +220,7 @@ export class ProjectMapComponent implements OnInit, OnDestroy {
async lazyLoadTopologySummary() {
if (this.isTopologySummaryVisible) {
const {TopologySummaryComponent} = await import('../topology-summary/topology-summary.component');
const componentFactory = this.cfr.resolveComponentFactory(TopologySummaryComponent);
this.instance = this.topologySummaryContainer.createComponent(componentFactory, null, this.injector);
this.instance = this.topologySummaryContainer.createComponent(TopologySummaryComponent);
this.instance.instance.server = this.server;
this.instance.instance.project = this.project;
} else if (this.instance) {