Skip to content

Commit

Permalink
fix: angular regression error
Browse files Browse the repository at this point in the history
  • Loading branch information
felixroos committed Feb 17, 2020
1 parent c90aa86 commit 45ba56f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/calendar/src/lib/calendar/month.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ export class MonthComponent implements OnInit, OnChanges {
}

canAlter(value, span: string) {
const newDate = this.date.clone().add(value, span);
const newDate = this.date?.clone().add(value, span);
return this.isSelectable(newDate, 'months');
}

Expand Down

0 comments on commit 45ba56f

Please sign in to comment.