Merge pull request #320 from ueokande/configuration-compatible
set default properties
This commit is contained in:
commit
f58fa44cb4
1 changed files with 3 additions and 0 deletions
|
@ -18,6 +18,9 @@ const loadValue = () => {
|
||||||
} else if (settings.source === 'form') {
|
} else if (settings.source === 'form') {
|
||||||
value = settingsValues.valueFromForm(settings.form);
|
value = settingsValues.valueFromForm(settings.form);
|
||||||
}
|
}
|
||||||
|
if (!value.properties) {
|
||||||
|
value.properties = {};
|
||||||
|
}
|
||||||
return Object.assign({},
|
return Object.assign({},
|
||||||
settingsValues.valueFromJson(DefaultSettings.json),
|
settingsValues.valueFromJson(DefaultSettings.json),
|
||||||
value);
|
value);
|
||||||
|
|
Reference in a new issue