Description
Describe the bug
Attempting to Load JSONLogic with a particular arrangement causes an invalid Tree to be generated. This arrangement is one that can be exported directly from an existing Tree when using a Group field in Array mode and selecting a contains operator on a text sub-field.
Importing the JSONLogic throws no errors, but calling QbUtils.validateTree
on the generated tree throws an uncaught error.
This is unexpected because the JSONLogic I am trying to load is the exact JSONLogic that was generated during a QbUtils.jsonLogicFormat
export when using the arrangement described above.
See Screenshots for additional context.
To Reproduce
Visit this Sandbox
https://codesandbox.io/p/devbox/amazing-water-wq9qlx?workspaceId=ws_7seZ1LZqHrA2EFboxErAQj
Expected behavior
The JSONLogic can be imported successfully and be used to return the Query component back to the state that originally generated that JSONLogic string in the first place.
Screenshots