Skip to content

Commit

Permalink
feat: test
Browse files Browse the repository at this point in the history
  • Loading branch information
crazyair committed Apr 15, 2024
1 parent 9221e56 commit c052987
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/examples/names.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ export default () => {
<MyField
names={['start', 'end']}
getValueProps={(value: number[]) => {
return { value: value.map(v => `${v}`) };
return { value: value.map(v => (v ? `${v}` : undefined)) };
}}
getValueFromEvent={(value: string[]) => {
return value.map(v => Number(v));
return value.map(v => (v ? Number(v) : undefined));
}}
rules={[
{
Expand Down

0 comments on commit c052987

Please sign in to comment.