Browse Source

fix(form): format destructuring assignment error (#238)

fix(form): format 解构赋值错误
pull/256/head
TanFei 6 years ago
committed by GitHub
parent
commit
612995a532
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/components/Form/src/hooks/useFormValues.ts

2
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;
}

Loading…
Cancel
Save