I am encountering an issue with my HTML where it displays undefined(undefined). I have checked the data in the debugger and I suspect that there may be an error in how I am using the select data. Here is a snippet of the code:
<div *ngIf="publishItemsWarningMessage" class="text-danger">
{{publishItemsWarningMessage}}
<ul>
<li *ngFor="let detail of publishItemsWarningMessageDetails">
{{detail}}
</li>
</ul>
</div>
Here is the TypeScript code snippet:
if (response.UnpublishedRelatedTemplates.length > 0) {
this.publishItemsWarningMessageDetails = Enumerable
.From(response.UnpublishedRelatedTemplates)
.Select(UnpublishedRelatedTemplates => response.UnpublishedRelatedTemplates.RelatedTemplateId + " (" + response.UnpublishedRelatedTemplates.TemplateId + ")")
.ToArray();
}
Upon debugging, I can see the issue visually as shown below:
https://i.sstatic.net/j8lgF.png
The UI display shows undefined (undefined).