Skip to content

Commit 21d85ea

Browse files
authored
fix(form-item): initialValue issue in resetField (#6979)
1 parent b3ef249 commit 21d85ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/form/FormItem.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ export default defineComponent({
327327
const value = fieldValue.value;
328328
const prop = getPropByPath(model, namePath.value, true);
329329
if (Array.isArray(value)) {
330-
prop.o[prop.k] = [].concat(initialValue.value);
330+
prop.o[prop.k] = [].concat(initialValue.value ?? []);
331331
} else {
332332
prop.o[prop.k] = initialValue.value;
333333
}

0 commit comments

Comments
 (0)