Skip to content
This repository has been archived by the owner on Nov 12, 2024. It is now read-only.

Commit

Permalink
fixes jquense#2424 - fix js error TypeError: Cannot read properties o…
Browse files Browse the repository at this point in the history
…f undefined (reading 'getDate')
  • Loading branch information
LorienHW committed Mar 4, 2024
1 parent 351b0f3 commit 6dc496b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Month.js
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,8 @@ class MonthView extends React.Component {
}

selectDates(slotInfo) {
if (!this._pendingSelection?.length) return;

let slots = this._pendingSelection.slice()

this._pendingSelection = []
Expand Down

0 comments on commit 6dc496b

Please sign in to comment.