Skip to content

Commit eb94e8d

Browse files
committed
Chanhe hardcoded agg with the exported for the METRIC_TYPES var
1 parent 8044f86 commit eb94e8d

File tree

1 file changed

+2
-1
lines changed
  • src/plugins/vis_type_timeseries/public/application/components/aggs

1 file changed

+2
-1
lines changed

src/plugins/vis_type_timeseries/public/application/components/aggs/calculation.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import { createChangeHandler } from '../lib/create_change_handler';
2626
import { createSelectHandler } from '../lib/create_select_handler';
2727
import { createTextHandler } from '../lib/create_text_handler';
2828
import { CalculationVars, newVariable } from './vars';
29+
import { METRIC_TYPES } from '../../../../common/metric_types';
2930
import { FormattedMessage } from '@kbn/i18n/react';
3031

3132
import {
@@ -99,7 +100,7 @@ export function CalculationAgg(props) {
99100
onChange={handleChange}
100101
name="variables"
101102
model={model}
102-
exclude={['top_hit']}
103+
exclude={[METRIC_TYPES.TOP_HIT]}
103104
/>
104105
</EuiFlexItem>
105106

0 commit comments

Comments
 (0)