orderedAnalysis.forEach((analysis) => {
                this.analysisCenterService.getAnalysisDetails(analysis.id).subscribe(detail => {
                    analysis.detailed = detail;
                });
            });
console.log(orderedAnalysis[0]);
This is the result of the log statement:

But when I log orderedAnalysis[0].detailed the result will be undefined.
Why does this happen and how do I do this propely?
 
     
    