Skip to content

Commit

Permalink
hack for js error
Browse files Browse the repository at this point in the history
  • Loading branch information
arshaw committed Mar 16, 2019
1 parent f1189be commit c3db87d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/Calendar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ export default class Calendar {
}

if (oldState.dateProfile !== newState.dateProfile || this.needsFullRerender) {
if (oldState.dateProfile) {
if (oldState.dateProfile && view) { // why would view be null!?
this.publiclyTrigger('datesDestroy', [
{
view,
Expand All @@ -320,7 +320,7 @@ export default class Calendar {
}

if (oldState.viewType !== newState.viewType || this.needsFullRerender) {
if (oldState.viewType) {
if (oldState.viewType && view) { // why would view be null!?
this.publiclyTrigger('viewSkeletonDestroy', [
{
view,
Expand Down

0 comments on commit c3db87d

Please sign in to comment.