From cd668f3ed5fe57c77edcb9ffa79667ebc51e1f8e Mon Sep 17 00:00:00 2001 From: Ludek Novy <13610612+ludeknovy@users.noreply.github.com> Date: Sat, 14 Jan 2023 21:38:29 +0100 Subject: [PATCH] missing apdex data fix (#295) --- .../request-stats/request-stats-compare.component.html | 4 ++-- .../request-stats/request-stats-compare.component.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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() {