Skip to content

Commit

Permalink
[Security Solution][Defend Workflows][Event Filters] Fixes bug where …
Browse files Browse the repository at this point in the history
…wrong callout is shown after switching operators (elastic#181791)

## Summary
- [x] Fixes bug where a stale warning callout is shown in create/edit
event filters even when the operator is changed to fix the warning

# Screenshots

BEFORE

![image](https://github.com/elastic/kibana/assets/56409205/6d918d84-fbe5-4f5a-893c-1a7146d71a2d)

AFTER

![stalecallout](https://github.com/elastic/kibana/assets/56409205/6d71c5da-e60a-49a3-8d01-6092cf021ab8)
  • Loading branch information
parkiino authored Apr 29, 2024
1 parent 6f805d5 commit a47888a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,7 @@ export const EventFiltersForm: React.FC<ArtifactFormComponentProps & { allowSele
}

// handle wildcard with wrong operator case
setHasWildcardWithWrongOperator(false);
arg.exceptionItems[0]?.entries.forEach((e) => {
if (
validateHasWildcardWithWrongOperator({
Expand Down

0 comments on commit a47888a

Please sign in to comment.