Skip to content

Commit

Permalink
remove toAngularJson
Browse files Browse the repository at this point in the history
  • Loading branch information
Dosant committed Mar 9, 2022
1 parent 299b21b commit f1918a0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 47 deletions.
3 changes: 1 addition & 2 deletions src/plugins/data/common/search/aggs/buckets/filters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import { buildEsQuery, Query } from '@kbn/es-query';

import { QueryFilter, queryFilterToAst } from '../../expressions';
import { createFilterFilters } from './create_filter/filters';
import { toAngularJSON } from '../utils';
import { BucketAggType } from './bucket_agg_type';
import { BUCKET_TYPES } from './bucket_agg_types';
import { aggFiltersFnName } from './filters_fn';
Expand Down Expand Up @@ -83,7 +82,7 @@ export const getFiltersBucketAgg = ({ getConfig }: FiltersBucketAggDependencies)
matchAllLabel ||
(typeof filter.input.query === 'string'
? filter.input.query
: toAngularJSON(filter.input.query));
: JSON.stringify(filter.input.query));
filters[label] = query;
},
{}
Expand Down
45 changes: 0 additions & 45 deletions src/plugins/data/common/search/aggs/utils/to_angular_json.ts

This file was deleted.

0 comments on commit f1918a0

Please sign in to comment.