Skip to content

Commit

Permalink
Disable value lists for threshold rule exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
madirey committed Dec 9, 2020
1 parent b9b39b9 commit 4416e61
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import React, { useCallback } from 'react';
import { EuiFormRow, EuiFlexGroup, EuiFlexItem } from '@elastic/eui';
import styled from 'styled-components';

import { isEqlRule } from '../../../../../common/detection_engine/utils';
import { isEqlRule, isThresholdRule } from '../../../../../common/detection_engine/utils';
import { Type } from '../../../../../common/detection_engine/schemas/common/schemas';
import { IFieldType, IIndexPattern } from '../../../../../../../../src/plugins/data/common';
import { FieldComponent } from '../../autocomplete/field';
Expand Down Expand Up @@ -149,7 +149,7 @@ export const BuilderEntryItem: React.FC<EntryItemProps> = ({
entry,
listType,
entry.field != null && entry.field.type === 'boolean',
isFirst && !isEqlRule(ruleType)
isFirst && !isEqlRule(ruleType) && !isThresholdRule(ruleType),
);
const comboBox = (
<OperatorComponent
Expand Down

0 comments on commit 4416e61

Please sign in to comment.