Skip to content

Commit

Permalink
Remove unused prop from EqlQueryBar
Browse files Browse the repository at this point in the history
Index corresponds to the value from the index field; now that our EQL
validation is performed by the form we have no need for it here.
  • Loading branch information
rylnd committed Oct 1, 2020
1 parent b865866 commit 7865eaf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,9 @@ export interface EqlQueryBarProps {
dataTestSubj: string;
field: FieldHook<DefineStepRule['queryBar']>;
idAria?: string;
index: string[];
}

export const EqlQueryBar: FC<EqlQueryBarProps> = ({ dataTestSubj, field, idAria, index }) => {
export const EqlQueryBar: FC<EqlQueryBarProps> = ({ dataTestSubj, field, idAria }) => {
const { addError } = useAppToasts();
const [errorMessages, setErrorMessages] = useState<string[]>([]);
const { setValue } = field;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,6 @@ const StepDefineRuleComponent: FC<StepDefineRuleProps> = ({
idAria: 'detectionEngineStepDefineRuleEqlQueryBar',
isDisabled: isLoading,
isLoading: indexPatternsLoading,
index,
dataTestSubj: 'detectionEngineStepDefineRuleEqlQueryBar',
}}
config={{
Expand Down

0 comments on commit 7865eaf

Please sign in to comment.