Skip to content
This repository has been archived by the owner on Oct 20, 2021. It is now read-only.

Commit

Permalink
fix: do not erase chart.percent
Browse files Browse the repository at this point in the history
  • Loading branch information
leleueri authored and jhaeyaert committed Jul 27, 2021
1 parent 0629c65 commit 1c460bc
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ const WidgetDataTableConfigurationComponent: ng.IComponentOptions = {
this.chart.columns[1] = _.find(this.projections, (p) => p.value === this.projection).label;
if (this.projection) {
this.chart.request.order = this.order + this.aggregate + ':' + this.projection;
this.chart.percent = false;
if (this.projection !== '_count') {
this.chart.percent = false;
}
} else {
delete this.chart.request.order;
}
Expand Down

0 comments on commit 1c460bc

Please sign in to comment.