Unverified Commit 612995a5 authored by TanFei's avatar TanFei Committed by GitHub

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

fix(form): format 解构赋值错误
parent 826e5f3d
...@@ -57,7 +57,7 @@ export function useFormValues({ ...@@ -57,7 +57,7 @@ export function useFormValues({
return values; 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]) { if (!field || !startTimeKey || !endTimeKey || !values[field]) {
continue; continue;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment