{"action":"created","issue":{"url":"https://api.github.com/repos/intljusticemission/react-big-calendar/issues/718","repository_url":"https://api.github.com/repos/intljusticemission/react-big-calendar","labels_url":"https://api.github.com/repos/intljusticemission/react-big-calendar/issues/718/labels{/name}","comments_url":"https://api.github.com/repos/intljusticemission/react-big-calendar/issues/718/comments","events_url":"https://api.github.com/repos/intljusticemission/react-big-calendar/issues/718/events","html_url":"https://github.com/intljusticemission/react-big-calendar/issues/718","id":294938893,"number":718,"title":"Passing a dateHeader component breaks month view when navigating","user":{"login":"tobiasandersen","id":3599069,"avatar_url":"https://avatars2.githubusercontent.com/u/3599069?v=4","gravatar_id":"","url":"https://api.github.com/users/tobiasandersen","html_url":"https://github.com/tobiasandersen","followers_url":"https://api.github.com/users/tobiasandersen/followers","following_url":"https://api.github.com/users/tobiasandersen/following{/other_user}","gists_url":"https://api.github.com/users/tobiasandersen/gists{/gist_id}","starred_url":"https://api.github.com/users/tobiasandersen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobiasandersen/subscriptions","organizations_url":"https://api.github.com/users/tobiasandersen/orgs","repos_url":"https://api.github.com/users/tobiasandersen/repos","events_url":"https://api.github.com/users/tobiasandersen/events{/privacy}","received_events_url":"https://api.github.com/users/tobiasandersen/received_events","type":"User","site_admin":false},"labels":[{"id":251183305,"url":"https://api.github.com/repos/intljusticemission/react-big-calendar/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-02-06T22:38:53Z","updated_at":"2018-03-26T15:08:47Z","closed_at":null,"author_association":"COLLABORATOR","body":"#### Do you want to request a _feature_ or report a _bug_?\r\nBug\r\n\r\n#### What's the current behavior?\r\nIf I pass a `dateHeader` component to the calendar, the [month view](https://github.com/intljusticemission/react-big-calendar/blob/master/src/Month.js#L245) throws the following error when navigating (using the back/next buttons):\r\n\r\n```\r\nCannot read property '0' of undefined\r\n```\r\n\r\nFor some reason (haven't had time to investigate yet) the [length of weeks](https://github.com/intljusticemission/react-big-calendar/blob/master/src/Month.js#L136) is 0.\r\n\r\nThis can be seen in the [\"custom date header\" example](https://github.com/intljusticemission/react-big-calendar/blob/master/stories/Calendar.js#L311-L327) in storybook.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/intljusticemission/react-big-calendar/issues/comments/376200074","html_url":"https://github.com/intljusticemission/react-big-calendar/issues/718#issuecomment-376200074","issue_url":"https://api.github.com/repos/intljusticemission/react-big-calendar/issues/718","id":376200074,"user":{"login":"drewandrew","id":23243387,"avatar_url":"https://avatars0.githubusercontent.com/u/23243387?v=4","gravatar_id":"","url":"https://api.github.com/users/drewandrew","html_url":"https://github.com/drewandrew","followers_url":"https://api.github.com/users/drewandrew/followers","following_url":"https://api.github.com/users/drewandrew/following{/other_user}","gists_url":"https://api.github.com/users/drewandrew/gists{/gist_id}","starred_url":"https://api.github.com/users/drewandrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drewandrew/subscriptions","organizations_url":"https://api.github.com/users/drewandrew/orgs","repos_url":"https://api.github.com/users/drewandrew/repos","events_url":"https://api.github.com/users/drewandrew/events{/privacy}","received_events_url":"https://api.github.com/users/drewandrew/received_events","type":"User","site_admin":false},"created_at":"2018-03-26T15:08:47Z","updated_at":"2018-03-26T15:08:47Z","author_association":"NONE","body":"I am also experiencing this issue in v0.19.0 and the `defaultDate={new Date()}` also seemed to work for me."}}
{"actor":{"display_login":"drewandrew"}}