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

fix(form): format 解构赋值错误
This commit is contained in:
TanFei 2021-02-05 00:41:13 +08:00 committed by GitHub
parent 826e5f3d9b
commit 612995a532
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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