Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
banderror committed May 24, 2022
1 parent e83c88d commit 28c998a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,6 @@ const StepDefineRuleComponent: FC<StepDefineRuleProps> = ({
// we reset the custom query to the default used for "threat_match" rules ('*:*').
if (isThreatMatchRule(ruleType) && !isThreatMatchRule(previousRuleType)) {
if (isEqual(queryBar.value, defaultCustomQuery.forNormalRules)) {
console.log(`StepDefineRuleComponent :: switchedToThreatMatchType`);
queryBar.reset({
defaultValue: defaultCustomQuery.forThreatMatchRules,
});
Expand All @@ -265,7 +264,6 @@ const StepDefineRuleComponent: FC<StepDefineRuleProps> = ({
// we reset the custom query to another default value ('').
if (!isThreatMatchRule(ruleType) && isThreatMatchRule(previousRuleType)) {
if (isEqual(queryBar.value, defaultCustomQuery.forThreatMatchRules)) {
console.log(`StepDefineRuleComponent :: switchedFromThreatMatchType`);
queryBar.reset({
defaultValue: defaultCustomQuery.forNormalRules,
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ describe('rule helpers', () => {
language: '',
},
filters: [],
saved_id: undefined,
saved_id: null,
},
timeline: {
id: '86aa74d0-2136-11ea-9864-ebc8cc1cb8c2',
Expand Down Expand Up @@ -231,7 +231,7 @@ describe('rule helpers', () => {
language: '',
},
filters: [],
saved_id: undefined,
saved_id: null,
},
timeline: {
id: '86aa74d0-2136-11ea-9864-ebc8cc1cb8c2',
Expand Down Expand Up @@ -259,7 +259,7 @@ describe('rule helpers', () => {
language: 'kuery',
},
filters: [],
saved_id: undefined,
saved_id: null,
},
relatedIntegrations: [],
requiredFields: [],
Expand All @@ -275,7 +275,7 @@ describe('rule helpers', () => {
language: '',
},
filters: [],
saved_id: undefined,
saved_id: null,
},
timeline: {
id: '86aa74d0-2136-11ea-9864-ebc8cc1cb8c2',
Expand Down

0 comments on commit 28c998a

Please sign in to comment.