Show tooltip when mixing string and integer fields for joining region maps to ES results (#19447)

This commit is contained in:
Thomas Neirynck 2018-06-01 13:12:35 -04:00 committed by GitHub
parent bc5f05ef2f
commit 9b796133c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -219,7 +219,7 @@ CORS configuration of the server permits requests from the Kibana application on
return '';
}
const match = this._metrics.find((bucket) => {
return bucket.term === geojsonFeature.properties[this._joinField];
return compareLexographically(bucket.term, geojsonFeature.properties[this._joinField]) === 0;
});
return tooltipFormatter(metricsAgg, match, fieldName);
};