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

[BUG] No rendering if two component as props inside a dictionary. #2128

Closed
T4rk1n opened this issue Jul 13, 2022 · 0 comments · Fixed by #2152
Closed

[BUG] No rendering if two component as props inside a dictionary. #2128

T4rk1n opened this issue Jul 13, 2022 · 0 comments · Fixed by #2152
Labels
bug something broken

Comments

@T4rk1n
Copy link
Contributor

T4rk1n commented Jul 13, 2022

When defining props on component, if you have two props that can be components inside a list of dictionaries, the components are not rendered and a react error indicate objects are invalid.

Example props:

type Props = {
   fields: {
      label?: JSX.Element;
      input_component?: JSX.Element;
   }[];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant