Open UjinT34 opened 5 years ago
Something similar happens to me when logging out on my app:
TypeError: Cannot read property 'props' of null
at Object.ReactElement.js.m.cloneElement (44c44d30d32601e20aa98f13c405a7f1b9076b49.js?meteor_js_resource=true:17)
at eval (/node_modules/react-event-timeline/dist/Timeline.js:1)
at u (44c44d30d32601e20aa98f13c405a7f1b9076b49.js?meteor_js_resource=true:17)
at o (44c44d30d32601e20aa98f13c405a7f1b9076b49.js?meteor_js_resource=true:17)
at o (44c44d30d32601e20aa98f13c405a7f1b9076b49.js?meteor_js_resource=true:17)
at i (44c44d30d32601e20aa98f13c405a7f1b9076b49.js?meteor_js_resource=true:17)
at c (44c44d30d32601e20aa98f13c405a7f1b9076b49.js?meteor_js_resource=true:17)
at Object.l [as map] (44c44d30d32601e20aa98f13c405a7f1b9076b49.js?meteor_js_resource=true:17)
at t.e (/node_modules/react-event-timeline/dist/Timeline.js:1)
at h._renderValidatedComponentWithoutOwnerOrContext (44c44d30d32601e20aa98f13c405a7f1b9076b49.js?meteor_js_resource=true:17)
Is there a workaround?
I also experienced this bug. Is there any solution to this?
I sort of solved it.
When the value is null, pass an empty div and everything will be fine.
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