Skip to content

Commit c64353c

Browse files
committed
do not format unique_count aggregation results
1 parent 9c58eea commit c64353c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x-pack/legacy/plugins/maps/public/layers/tooltips/es_aggmetric_tooltip_property.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export class ESAggMetricTooltipProperty extends ESTooltipProperty {
2222
if (typeof this._rawValue === 'undefined') {
2323
return '-';
2424
}
25-
if (this._metricField.type === METRIC_TYPE.COUNT) {
25+
if (this._metricField.type === METRIC_TYPE.COUNT || this._metricField.type === METRIC_TYPE.UNIQUE_COUNT) {
2626
return this._rawValue;
2727
}
2828
const indexPatternField = this._indexPattern.fields.getByName(this._metricField.field);

0 commit comments

Comments
 (0)