[DURACOM-191] fix item submission

This commit is contained in:
Andrea Barbasso
2024-01-12 15:52:35 +01:00
parent 6313d42937
commit 061ff519d7
8 changed files with 23 additions and 11 deletions

View File

@@ -43,9 +43,9 @@
[type]="AlertTypeEnum.Error" (close)="sectionRef.removeError(i)"></ds-alert>
</div>
<div id="sectionContent_{{sectionData.id}}" (click)="sectionRef.setFocus($event)">
<ng-container *ngComponentOutlet="getSectionContent(); injector: objectInjector;"></ng-container>
<ng-container *ngComponentOutlet="(getSectionContent() | async); injector: objectInjector;"></ng-container>
</div>
</ng-template>
</ngb-panel>
</ngb-accordion>
</div>
</div>

View File

@@ -103,7 +103,7 @@ export class SubmissionSectionContainerComponent implements OnInit {
/**
* Find the correct component based on the section's type
*/
getSectionContent(): string {
getSectionContent() {
return rendersSectionType(this.sectionData.sectionType);
}
}