mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[Synthetics] Disable use logical AND when filter is removed (#218910)
This PR fixes an issue found in #217985 https://github.com/user-attachments/assets/3b995e0f-1b33-4740-99ca-29b3760c46da
This commit is contained in:
parent
31de47bac5
commit
17118d594e
1 changed files with 2 additions and 1 deletions
|
@ -120,7 +120,8 @@ export function useMonitorFiltersState() {
|
|||
const currentUseLogicalAndFor = urlParams.useLogicalAndFor || [];
|
||||
newUrlParams.useLogicalAndFor = serializeFilterValue(
|
||||
'useLogicalAndFor',
|
||||
isLogicalAND
|
||||
// When all the values are deselected remove the useLogicalAndFor for the field
|
||||
isLogicalAND && selectedValues?.length
|
||||
? [...currentUseLogicalAndFor, field]
|
||||
: currentUseLogicalAndFor.filter((item: string) => item !== field)
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue