Skip to content

Commit

Permalink
missing apdex data fix (#295)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeknovy authored Jan 14, 2023
1 parent 3c024ce commit cd668f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ <h6 class="card-header bg-transparent">Request Statistics <span class="compare">
<th scope="col" class="hd jtl-head-color" *ngIf="displayColumn(itemData.userSettings?.requestStats?.errorRate)">
<mfDefaultSorter by="errorRate">error rate [%]</mfDefaultSorter>
</th>
<th scope="col" class="hd jtl-head-color" *ngIf="displayColumn(itemData.userSettings?.requestStats.apdex) && shouldApdexColumnBeDisplayed()">
<th scope="col" class="hd jtl-head-color" *ngIf="displayColumn(itemData.userSettings?.requestStats?.apdex) && shouldApdexColumnBeDisplayed()">
<mfDefaultSorter [by]="sortByApdex">apdex</mfDefaultSorter>
</th>
<th scope="col" class="hd jtl-head-color" data-html2canvas-ignore="true">
Expand Down Expand Up @@ -128,7 +128,7 @@ <h6 class="card-header bg-transparent">Request Statistics <span class="compare">
<span
[className]="comparedData ? _.errorRate > 0 ? 'value-positive' : 'value-negative' : ''">{{_.errorRate | number: '1.0-2'}}</span>
</td>
<td *ngIf="displayColumn(itemData.userSettings?.requestStats.apdex) && shouldApdexColumnBeDisplayed()">
<td *ngIf="displayColumn(itemData.userSettings?.requestStats?.apdex) && shouldApdexColumnBeDisplayed()">
<span>
{{ calculateApdex(_.apdex?.satisfaction,_.apdex?.toleration, _.samples)}}
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit cd668f3

Please sign in to comment.