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

Crash if no events for the rendered view #2653

Closed
4 of 5 tasks
Raduh opened this issue Sep 15, 2024 · 1 comment
Closed
4 of 5 tasks

Crash if no events for the rendered view #2653

Raduh opened this issue Sep 15, 2024 · 1 comment
Labels

Comments

@Raduh
Copy link

Raduh commented Sep 15, 2024

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
@Raduh Raduh added the bug label Sep 15, 2024
@Raduh
Copy link
Author

Raduh commented Sep 15, 2024

The issue is actually caused by conflicting timezones for defaultDate

@Raduh Raduh closed this as completed Sep 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant