Skip to content

Commit

Permalink
[ML] Fix geo_shape content causing Data Visualizer to not load correc…
Browse files Browse the repository at this point in the history
…tly (#92052)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
  • Loading branch information
qn895 and kibanamachine authored Feb 22, 2021
1 parent b1bbe16 commit 0024f28
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { i18n } from '@kbn/i18n';

import { CoreSetup } from 'src/core/public';

import { IndexPattern } from '../../../../../../../../src/plugins/data/public';
import { IndexPattern, KBN_FIELD_TYPES } from '../../../../../../../../src/plugins/data/public';

import { SavedSearchQuery } from '../../../contexts/ml';
import { OMIT_FIELDS } from '../../../../../common/constants/field_types';
Expand Down Expand Up @@ -48,7 +48,7 @@ export class DataLoader {
this._indexPattern.fields.forEach((field) => {
const fieldName = field.displayName !== undefined ? field.displayName : field.name;
if (this.isDisplayField(fieldName) === true) {
if (field.aggregatable === true) {
if (field.aggregatable === true && field.type !== KBN_FIELD_TYPES.GEO_SHAPE) {
aggregatableFields.push(fieldName);
} else {
nonAggregatableFields.push(fieldName);
Expand Down

0 comments on commit 0024f28

Please sign in to comment.