Skip to content

Crash when Timeline gets null as a child. #37

@UjinT34

Description

@UjinT34

React.cloneElement(...): The argument must be a React element, but you passed null.
The above error occurred in the component: in Timeline (created by TimelineComponent)

https://github.com/rcdexta/react-event-timeline/blob/master/components/Timeline.js#L8
https://stackoverflow.com/questions/55327901/react-treats-timeline-element-as-null-even-with-a-condition-check/55328070#55328070

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