diff --git a/src/app/item-detail/request-stats/request-stats-compare.component.html b/src/app/item-detail/request-stats/request-stats-compare.component.html index 61fbdb0b..3f8d60db 100644 --- a/src/app/item-detail/request-stats/request-stats-compare.component.html +++ b/src/app/item-detail/request-stats/request-stats-compare.component.html @@ -86,7 +86,7 @@
Request Statistics error rate [%] - + apdex @@ -128,7 +128,7 @@
Request Statistics {{_.errorRate | number: '1.0-2'}} - + {{ calculateApdex(_.apdex?.satisfaction,_.apdex?.toleration, _.samples)}} diff --git a/src/app/item-detail/request-stats/request-stats-compare.component.ts b/src/app/item-detail/request-stats/request-stats-compare.component.ts index 42afe366..feb457af 100644 --- a/src/app/item-detail/request-stats/request-stats-compare.component.ts +++ b/src/app/item-detail/request-stats/request-stats-compare.component.ts @@ -52,7 +52,7 @@ export class RequestStatsCompareComponent implements OnInit, OnDestroy { this.externalSearchTerm = data.label; } }); - this.displayApdexColumn = !!this.itemData.statistics.find(stats => stats.apdex.satisfaction && stats.apdex.toleration) + this.displayApdexColumn = !!this.itemData.statistics.find(stats => stats.apdex?.satisfaction && stats.apdex?.toleration) } ngOnDestroy() {