Skip to content

Cannot pass null as children #30

@ekros

Description

@ekros

Given the following code:

<HorizontalLayout>
  <Panel></Panel>
  {foo ? <Panel></Panel> : null}
</HorizontalLayout>

It throws an error: TypeError: Cannot read property 'id' of null

It should ignore nullish children so this kind of logic can be used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions