jquense/react-big-calendar

Crash if no events for the rendered view

Closed this issue · 1 comments

Check that this is really a bug

  • I confirm

Reproduction link

https://pastebin.com/tQCtfACX

Bug description

If the events property for RBC is a non-empty array, but the current view does not have any events to render (because the available events occur outside the current view), a crash occurs.

Expected Behavior

No crash should occur.

Actual Behavior

No response

react-big-calendar version

1.13.4

React version

17.0.2

Platform/Target and Browser Versions

Ubuntu

Validations

  • Read the docs.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
  • Make sure this is a react-big-calendar issue and not an implementation issue

Would you like to open a PR for this bug?

  • I'm willing to open a PR

The issue is actually caused by conflicting timezones for defaultDate