Skip to content

Commit

Permalink
fix(form): format destructuring assignment error (#238)
Browse files Browse the repository at this point in the history
fix(form): format 解构赋值错误
  • Loading branch information
TanFei authored Feb 4, 2021
1 parent 826e5f3 commit 612995a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Form/src/hooks/useFormValues.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 612995a

Please sign in to comment.