From 7865eaf3760a3148e36fc28e7350b85febc3138c Mon Sep 17 00:00:00 2001 From: Ryland Herrick Date: Wed, 30 Sep 2020 22:00:00 -0500 Subject: [PATCH] Remove unused prop from EqlQueryBar 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. --- .../components/rules/eql_query_bar/eql_query_bar.tsx | 3 +-- .../detections/components/rules/step_define_rule/index.tsx | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/x-pack/plugins/security_solution/public/detections/components/rules/eql_query_bar/eql_query_bar.tsx b/x-pack/plugins/security_solution/public/detections/components/rules/eql_query_bar/eql_query_bar.tsx index 3fe63d8934c07..f7ee5be18154c 100644 --- a/x-pack/plugins/security_solution/public/detections/components/rules/eql_query_bar/eql_query_bar.tsx +++ b/x-pack/plugins/security_solution/public/detections/components/rules/eql_query_bar/eql_query_bar.tsx @@ -27,10 +27,9 @@ export interface EqlQueryBarProps { dataTestSubj: string; field: FieldHook; idAria?: string; - index: string[]; } -export const EqlQueryBar: FC = ({ dataTestSubj, field, idAria, index }) => { +export const EqlQueryBar: FC = ({ dataTestSubj, field, idAria }) => { const { addError } = useAppToasts(); const [errorMessages, setErrorMessages] = useState([]); const { setValue } = field; diff --git a/x-pack/plugins/security_solution/public/detections/components/rules/step_define_rule/index.tsx b/x-pack/plugins/security_solution/public/detections/components/rules/step_define_rule/index.tsx index 2d1dfcc537b4e..96c3ffe1d2a71 100644 --- a/x-pack/plugins/security_solution/public/detections/components/rules/step_define_rule/index.tsx +++ b/x-pack/plugins/security_solution/public/detections/components/rules/step_define_rule/index.tsx @@ -238,7 +238,6 @@ const StepDefineRuleComponent: FC = ({ idAria: 'detectionEngineStepDefineRuleEqlQueryBar', isDisabled: isLoading, isLoading: indexPatternsLoading, - index, dataTestSubj: 'detectionEngineStepDefineRuleEqlQueryBar', }} config={{