fix(form-item): initialValue issue in resetField (#6979)

pull/7025/head
Konv Suu 2023-10-15 20:54:41 -05:00 committed by GitHub
parent b3ef24963f
commit 21d85ea82c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -327,7 +327,7 @@ export default defineComponent({
const value = fieldValue.value;
const prop = getPropByPath(model, namePath.value, true);
if (Array.isArray(value)) {
prop.o[prop.k] = [].concat(initialValue.value);
prop.o[prop.k] = [].concat(initialValue.value ?? []);
} else {
prop.o[prop.k] = initialValue.value;
}