When defining actions for a rule, if a filter with AND or OR is created in the AddFilterPopover (inside `If alert matches a query') saving the form throws an error.
Steps to reproduce:
Go to Rules and try creating a new rule of any type
Add an action to the rule
Check the option If alert matches a query
Click the + icon to add a filter
Create a filter in the popover
Click AND or OR
Create another filter
Click Add filter
Try saving the rule
Confirm an error is displayed in a popover## Expected behavior:
No error should be thrown in the scenario described above and the rule should be saved successfully.
Describe the bug:
When defining actions for a rule, if a filter with
AND
orOR
is created in theAddFilterPopover
(inside `If alert matches a query') saving the form throws an error.Steps to reproduce:
Rules
and try creating a new rule of any typeIf alert matches a query
+
icon to add a filterAND
orOR
Add filter
No error should be thrown in the scenario described above and the rule should be saved successfully.
Screenshots:
Error with
OR
Error with
AND