Skip to content

Commit

Permalink
trends min items condition fix (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeknovy authored Dec 12, 2020
1 parent 2614c56 commit 2cc3542
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/item-detail/label-trend/label-trend.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export class LabelTrendComponent implements OnInit {
{ environment: this.trendInput.environment }
)
.subscribe(__ => {
this.vuFilters = __.result.filter((r) => r.count > 5).map((r) => r.maxVu);
this.vuFilters = __.result.filter((r) => r.count >= 5).map((r) => r.maxVu);
});
});
}
Expand All @@ -79,7 +79,7 @@ export class LabelTrendComponent implements OnInit {
virtualUsers
}
).subscribe((_) => {
this.labelChartOption = _.timePoints.length > 5 ? labelTrendChartOptions(_) : emptyChart();
this.labelChartOption = _.timePoints.length >= 5 ? labelTrendChartOptions(_) : emptyChart();
this.updateData();
});
}
Expand Down

0 comments on commit 2cc3542

Please sign in to comment.