Skip to content
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

"rows / groups is not iterable" with nested elements #94

Open
Bo-Duke opened this issue Apr 23, 2024 · 1 comment
Open

"rows / groups is not iterable" with nested elements #94

Bo-Duke opened this issue Apr 23, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Bo-Duke
Copy link

Bo-Duke commented Apr 23, 2024

Using the last version of the lib available on npm, it seems to crash on "nested" schemas.

For example, the "Array/List", "Referencing" or "Recursion" schemas from the Playground don't work, whereas the most simple ones like "Object/Dict" work as intended.

I made a small codesandbox to showcase that : https://codesandbox.io/p/sandbox/condescending-khorana-ddgtyx

The problem seems to come from this line :

return [...rows, ...groups];

I tried using the minified file used in the playground, and it seemed to work : https://github.com/bhch/react-json-form/blob/master/docs/static/js/react-json-form.js

@bhch bhch added the bug Something isn't working label Apr 25, 2024
@bhch
Copy link
Owner

bhch commented Apr 25, 2024

Thank you for reporting this. I'll release a fix soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants