Skip to content

Commit

Permalink
Issue #16: remove Script field
Browse files Browse the repository at this point in the history
  • Loading branch information
idrissneumann committed Nov 24, 2023
1 parent 271eda2 commit 397fb19
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { extendedStats } from '../../../../queryDef';
import { MetricAggregation, ExtendedStat } from '../../../../types';
import { useQuery } from '../../ElasticsearchQueryContext';
import { SettingsEditorContainer } from '../../SettingsEditorContainer';
import { isMetricAggregationWithInlineScript, isMetricAggregationWithMissingSupport } from '../aggregations';
import { isMetricAggregationWithMissingSupport } from '../aggregations';
import { changeMetricMeta, changeMetricSetting } from '../state/actions';
import { metricAggregationConfig } from '../utils';

Expand Down Expand Up @@ -152,10 +152,6 @@ export const SettingsEditor = ({ metric, previousMetrics }: Props) => {
</>
)}

{isMetricAggregationWithInlineScript(metric) && (
<SettingField label="Script" metric={metric} settingName="script" placeholder="_value * 1" />
)}

{isMetricAggregationWithMissingSupport(metric) && (
<SettingField
label="Missing"
Expand Down

0 comments on commit 397fb19

Please sign in to comment.