From d0e65b3f2b9e455f2cc501c5605847cda25e8252 Mon Sep 17 00:00:00 2001 From: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Date: Wed, 17 Jan 2024 15:19:50 +0000 Subject: [PATCH] [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix' --- .../rule_creation_ui/components/description_step/index.tsx | 7 +++---- .../components/step_define_rule/schema.tsx | 3 +-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/x-pack/plugins/security_solution/public/detection_engine/rule_creation_ui/components/description_step/index.tsx b/x-pack/plugins/security_solution/public/detection_engine/rule_creation_ui/components/description_step/index.tsx index a599f86ad8d78..e662d4aaabf10 100644 --- a/x-pack/plugins/security_solution/public/detection_engine/rule_creation_ui/components/description_step/index.tsx +++ b/x-pack/plugins/security_solution/public/detection_engine/rule_creation_ui/components/description_step/index.tsx @@ -221,9 +221,7 @@ export const getDescriptionItem = ( } else if (field === 'groupByDuration') { const ruleType: Type = get('ruleType', data); const ruleCanHaveDuration = - isQueryRule(ruleType) || - isThresholdRule(ruleType) || - isThreatMatchRule(ruleType); + isQueryRule(ruleType) || isThresholdRule(ruleType) || isThreatMatchRule(ruleType); if (!ruleCanHaveDuration) { return []; } @@ -246,7 +244,8 @@ export const getDescriptionItem = ( } } else if (field === 'suppressionMissingFields') { const ruleType: Type = get('ruleType', data); - const ruleCanHaveSuppressionMissingFields = isQueryRule(ruleType) || isThreatMatchRule(ruleType); + const ruleCanHaveSuppressionMissingFields = + isQueryRule(ruleType) || isThreatMatchRule(ruleType); if (!ruleCanHaveSuppressionMissingFields) { return []; } diff --git a/x-pack/plugins/security_solution/public/detection_engine/rule_creation_ui/components/step_define_rule/schema.tsx b/x-pack/plugins/security_solution/public/detection_engine/rule_creation_ui/components/step_define_rule/schema.tsx index c5002f7adec4b..8a43698ab5ad4 100644 --- a/x-pack/plugins/security_solution/public/detection_engine/rule_creation_ui/components/step_define_rule/schema.tsx +++ b/x-pack/plugins/security_solution/public/detection_engine/rule_creation_ui/components/step_define_rule/schema.tsx @@ -604,8 +604,7 @@ export const schema: FormSchema = { ): ReturnType> | undefined => { const [{ formData }] = args; const needsValidation = - isQueryRule(formData.ruleType) || - isThreatMatchRule(formData.ruleType); + isQueryRule(formData.ruleType) || isThreatMatchRule(formData.ruleType); if (!needsValidation) { return; }