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