Skip to content

Commit

Permalink
Chanhe hardcoded agg with the exported for the METRIC_TYPES var
Browse files Browse the repository at this point in the history
  • Loading branch information
stratoula committed Nov 3, 2020
1 parent 8044f86 commit eb94e8d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import { createChangeHandler } from '../lib/create_change_handler';
import { createSelectHandler } from '../lib/create_select_handler';
import { createTextHandler } from '../lib/create_text_handler';
import { CalculationVars, newVariable } from './vars';
import { METRIC_TYPES } from '../../../../common/metric_types';
import { FormattedMessage } from '@kbn/i18n/react';

import {
Expand Down Expand Up @@ -99,7 +100,7 @@ export function CalculationAgg(props) {
onChange={handleChange}
name="variables"
model={model}
exclude={['top_hit']}
exclude={[METRIC_TYPES.TOP_HIT]}
/>
</EuiFlexItem>

Expand Down

0 comments on commit eb94e8d

Please sign in to comment.