Commit 612995a5326ef183d9f454059da6a2914ce5dd2f
Committed by
GitHub
1 parent
826e5f3d
fix(form): format destructuring assignment error (#238)
fix(form): format 解构赋值错误
Showing
1 changed file
with
1 additions
and
1 deletions
src/components/Form/src/hooks/useFormValues.ts
... | ... | @@ -57,7 +57,7 @@ export function useFormValues({ |
57 | 57 | return values; |
58 | 58 | } |
59 | 59 | |
60 | - for (const [field, [startTimeKey, endTimeKey, format = 'YYYY-MM-DD']] of fieldMapToTime) { | |
60 | + for (const [field, [startTimeKey, endTimeKey], format = 'YYYY-MM-DD'] of fieldMapToTime) { | |
61 | 61 | if (!field || !startTimeKey || !endTimeKey || !values[field]) { |
62 | 62 | continue; |
63 | 63 | } | ... | ... |