Browse Source
fix(form): format destructuring assignment error (#238)
fix(form): format 解构赋值错误
pull/256/head
TanFei
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/components/Form/src/hooks/useFormValues.ts
|
|
|
@ -57,7 +57,7 @@ export function useFormValues({ |
|
|
|
return values; |
|
|
|
} |
|
|
|
|
|
|
|
for (const [field, [startTimeKey, endTimeKey, format = 'YYYY-MM-DD']] of fieldMapToTime) { |
|
|
|
for (const [field, [startTimeKey, endTimeKey], format = 'YYYY-MM-DD'] of fieldMapToTime) { |
|
|
|
if (!field || !startTimeKey || !endTimeKey || !values[field]) { |
|
|
|
continue; |
|
|
|
} |
|
|
|
|