Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Commit

Permalink
fix: init array property in schema
Browse files Browse the repository at this point in the history
  • Loading branch information
hibig committed Mar 4, 2024
1 parent 5cf4cb0 commit 1be55ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/dynamic-form/components/array-field.vue
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,10 @@
const value = defaultValue || itemDefaultValue;
if (schema.isRequired || !isEmptyValueField(schema, value)) {
_.set(props.uiFormData, fieldPath, _.cloneDeep(value));
_.set(props.formData, fieldPath, _.cloneDeep(value));
}
});
handleChange(props.formData);
};
const handleAddClick = () => {
setPropertiesList();
Expand Down

0 comments on commit 1be55ba

Please sign in to comment.