Skip to content

Commit

Permalink
Merge a2db7bc into 406780b
Browse files Browse the repository at this point in the history
  • Loading branch information
Glignos committed Oct 16, 2020
2 parents 406780b + a2db7bc commit 39c6143
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class BucketAggregationValues extends Component {
);
};

getChildAggCmps = (bucket, selectedFilters) => {
getChildAggCmps = (bucket, selectedFilters, valuesLabels) => {
const hasChildAggregation =
this.childAgg && this.childAgg['aggName'] in bucket;
let selectedChildFilters = [];
Expand All @@ -56,6 +56,7 @@ class BucketAggregationValues extends Component {
aggName={this.childAgg.aggName}
childAgg={this.childAgg.childAgg}
onFilterClicked={onFilterClicked}
valuesLabels={valuesLabels}
/>
);
}
Expand All @@ -74,7 +75,7 @@ class BucketAggregationValues extends Component {
this.onFilterClicked([this.aggName, value]);
};
const getChildAggCmps = (bucket) =>
this.getChildAggCmps(bucket, selectedFilters);
this.getChildAggCmps(bucket, selectedFilters, valuesLabels);
let label = null;
if(valuesLabels){
label = _get(
Expand Down Expand Up @@ -129,7 +130,8 @@ const ValueElement = (props) => {
overridableId,
} = props;

const label = valueLabel ? valueLabel : `${bucket.key} (${bucket.doc_count})`;
const label = valueLabel ? `${valueLabel} (${bucket.doc_count}) `:
`${bucket.key} (${bucket.doc_count})`;
const childAggCmps = getChildAggCmps(bucket);
return (
<Overridable
Expand Down

0 comments on commit 39c6143

Please sign in to comment.