We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ecaf76 commit 1c50238Copy full SHA for 1c50238
1 file changed
x-pack/legacy/plugins/maps/public/layers/sources/es_source.js
@@ -243,9 +243,7 @@ export class AbstractESSource extends AbstractVectorSource {
243
244
async getFieldFormatter(fieldName) {
245
246
- const metricField = this.getMetricFields().find(({ propertyKey }) => {
247
- return propertyKey === fieldName;
248
- });
+ const metricField = this.getMetricFields().find(field => field.getName() === fieldName);
249
250
// Do not use field formatters for counting metrics
251
if (metricField && (metricField.type === METRIC_TYPE.COUNT || metricField.type === METRIC_TYPE.UNIQUE_COUNT)) {
0 commit comments