Skip to content

Commit 8209369

Browse files
committed
fix: fix type err
1 parent abd1bba commit 8209369

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PickerInput/Selector/hooks/useInputProps.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export default function useInputProps<DateType extends object = any>(
8686
const firstFormat = format[0];
8787

8888
const getText = React.useCallback(
89-
(date: DateType, index: number) =>
89+
(date: DateType, index?: number) =>
9090
formatValue(date, { locale, index, format: firstFormat, generateConfig }),
9191
[locale, generateConfig, firstFormat],
9292
);

0 commit comments

Comments
 (0)