Skip to content

Commit

Permalink
fix(ui): Ranger ts error
Browse files Browse the repository at this point in the history
  • Loading branch information
dengfuping committed Feb 6, 2024
1 parent 3cfebc3 commit 0b12590
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ui/src/Ranger/Ranger.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ const Ranger = (props: RangerProps) => {
<DatePicker.RangePicker
disabledDate={pastOnly ? disabledFuture : disabledDate}
format={DATE_TIME_FORMAT}
defaultValue={defaultValue}
value={innerValue || defaultInternalValue}
defaultValue={defaultValue as [Dayjs, Dayjs]}
value={(innerValue || defaultInternalValue) as [Dayjs, Dayjs]}
onChange={datePickerChange}
showTime={true}
className={`${prefix}-range-picker`}
Expand Down

0 comments on commit 0b12590

Please sign in to comment.