-
-
Notifications
You must be signed in to change notification settings - Fork 505
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
loadFromJsonLogic is not working as expected. #1187
Comments
It's a simple type issue.
|
Thanks. Following that I have been stuck in the loadFromJsonLogic Here am dynamically setting the fields and loading the hardcoded JSON with using loadFromJsonLogic. This for the "EDIT" functionality of my application. This how it comes out. even though the JSON has the RHS values it is not appearing during the execution. I'm doing something wrong in this, can you help on this? |
Did you override |
No I did not override that |
video_20250122_181421.mp4something unusual happening. ID one is having the fields like LastName DateOfBirth. When ID 1 is chosen it RHS is not appearing. But when choose 2. RHS appears. but the LHS is not changed. And ID 2 doesnt have the fields like LastName and DateOfBirth at all. Am I making any mistakes in the states? |
Please create a full reproducible demo in codesandbox.io |
https://codesandbox.io/p/github/themonk-e/ReactRuleBuilder/sandbox I have replicated the setup. In my requirement, we have a Windows application that will host this React Query Builder. The Windows application will provide the fields JSON to the React app. Here, I have simulated this behavior using a list of objects. |
I have requirement of allowing the users to edit the rules. So I need load back the json to the query builder using loadfromJsonLogic().
I tried with the example you have provided in the readme.
The method loadFromJsonLogic() has a return type of ImmutableTree|undefined which is causing the issue. Is there any resolve for this?
The text was updated successfully, but these errors were encountered: