fix: update error
This commit is contained in:
parent
c3c3cc18b2
commit
a241604bb4
|
|
@ -202,7 +202,7 @@ export function FormDatePicker<
|
|||
<Calendar
|
||||
initialFocus
|
||||
mode={mode}
|
||||
defaultMonth={mode === 'range' && 'from' in selectedDate ? selectedDate.from : selectedDate}
|
||||
defaultMonth={mode === 'range' && selectedDate && 'from' in selectedDate ? selectedDate.from : selectedDate}
|
||||
selected={selectedDate}
|
||||
onSelect={field.onChange}
|
||||
numberOfMonths={numberOfMonths}
|
||||
|
|
|
|||
Loading…
Reference in New Issue