-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add condition to PropertyFilterBuilderRenderer to allow last rule deletion #1034
Add condition to PropertyFilterBuilderRenderer to allow last rule deletion #1034
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Can you add unit test for PropertyFilterBuilderActions.removeItem
in FilterBuilderState.test.ts
to test the new behavior?
Added and also fixed a test that was failing in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, describe the change in NextVersion.md
as well
Changes
Added a prop called
allowLastRuleDelete
that will enable the deletion of the last remaining rule in a group.Testing
Built and tested locally with the Pineapple groups/query-builder component.