mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[D4C] Fix to unused selector badge showing when selector used as exclude (#156122)
## Summary Defend for containers (policy UI) fix: - Fix to unused selector badge showing when selector used as exclude
This commit is contained in:
parent
0832ae27a0
commit
69755a9ad8
1 changed files with 3 additions and 2 deletions
|
@ -338,8 +338,9 @@ export const ControlGeneralView = ({ policy, onChange, show }: ViewDeps) => {
|
|||
</EuiFlexItem>
|
||||
|
||||
{selectors.map((selector, i) => {
|
||||
const usedByResponse = !!responses.find((response) =>
|
||||
response.match.includes(selector.name)
|
||||
const usedByResponse = !!responses.find(
|
||||
(response) =>
|
||||
response.match.includes(selector.name) || response?.exclude?.includes(selector.name)
|
||||
);
|
||||
|
||||
return (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue