[Maps] ESSearchSource getSupportedShapeTypes wait for getGeoField (#36834)

This commit is contained in:
Nathan Reese 2019-05-21 17:08:23 -06:00 committed by GitHub
parent 83c14c8f63
commit 29cef695f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -234,7 +234,7 @@ export class ESSearchSource extends AbstractESSource {
async getSupportedShapeTypes() {
let geoFieldType;
try {
const geoField = this._getGeoField();
const geoField = await this._getGeoField();
geoFieldType = geoField.type;
} catch(error) {
// ignore exeception