Skip to content

Commit

Permalink
fix(admin-settings-form): fix setting default values on data
Browse files Browse the repository at this point in the history
dont overwrite data values
  • Loading branch information
leomp12 committed May 8, 2020
1 parent b0cfa1f commit 3efc28a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/js/EcAdminSettingsForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ export default {
component
})
}
if (localSchema.default) {
data[field] = localSchema.default
if (!data[field] && localSchema.default) {
this.$set(data, field, localSchema.default)
}
if (localSchema.type === 'object') {
if (!data[field]) {
Expand Down

0 comments on commit 3efc28a

Please # to comment.