Skip to content

Commit

Permalink
fix: save
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-huxiyang committed Sep 10, 2024
1 parent 4641a13 commit 1e91614
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/packages/datepicker/datepicker.taro.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ export const DatePicker: FunctionComponent<
catchMove
{...(rest as any)}
>
{!!pickerOptions.length && (
{!!pickerOptions?.length && (
<Picker
{...pickerProps}
title={title}
Expand Down
2 changes: 1 addition & 1 deletion src/packages/datepicker/datepicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ export const DatePicker: FunctionComponent<

return (
<div className={`nut-datepicker ${className}`} style={style} {...rest}>
{!!pickerOptions.length && (
{!!pickerOptions?.length && (
<Picker
{...pickerProps}
title={title}
Expand Down

0 comments on commit 1e91614

Please sign in to comment.