Replies: 1 comment
-
Please try adding root id ( |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Issue: Error While Using
removeRule
with Query BuilderProblem
I am using the
react-awesome-query-builder
package to build a query UI. I display all the applied rules as chips/badges in the UI. Each chip has a remove icon that, when clicked, calls theremoveRule
method with a path array (e.g.,[GroupId, RuleId]
) to remove the corresponding rule.However, I encounter the following error when attempting to call
removeRule
:Relevant Code
Here is the relevant part of my implementation:
Observations
actions
object in auseRef
during theonInit
callback.removeRule
method is invoked fromonRemoveFilters
with a valid path.Despite this, the error suggests an issue with accessing properties in
removeRule
.Questions
removeRule
method throw agetIn
error?actions
object?path
array should be structured forremoveRule
?actions
likeremoveRule
in this setup?Debug Information
"@react-awesome-query-builder/antd": "^6.6.4"
^18.2.0
Any help or suggestions would be greatly appreciated! Thank you in advance.
Beta Was this translation helpful? Give feedback.
All reactions