Skip to content

Commit 672b991

Browse files
authored
fix(form-item): initialValue issue in resetField (#7091)
1 parent eae2b5d commit 672b991

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/form/FormItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ export default defineComponent({
308308
const value = fieldValue.value;
309309
const prop = getPropByPath(model, namePath.value, true);
310310
if (Array.isArray(value)) {
311-
prop.o[prop.k] = [].concat(initialValue.value);
311+
prop.o[prop.k] = [].concat(initialValue.value ?? []);
312312
} else {
313313
prop.o[prop.k] = initialValue.value;
314314
}

0 commit comments

Comments
 (0)