From 6dc496b70ac15805e34e650685fc2d0b07851abc Mon Sep 17 00:00:00 2001 From: LorienHW Date: Mon, 4 Mar 2024 14:04:54 -0800 Subject: [PATCH] fixes #2424 - fix js error TypeError: Cannot read properties of undefined (reading 'getDate') --- src/Month.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Month.js b/src/Month.js index 9fc1d597de..ad21b6bc72 100644 --- a/src/Month.js +++ b/src/Month.js @@ -336,6 +336,8 @@ class MonthView extends React.Component { } selectDates(slotInfo) { + if (!this._pendingSelection?.length) return; + let slots = this._pendingSelection.slice() this._pendingSelection = []