Merge pull request #320 from ueokande/configuration-compatible

set default properties
This commit is contained in:
Shin'ya Ueoka 2018-01-23 12:12:38 +00:00 committed by GitHub
commit f58fa44cb4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,6 +18,9 @@ const loadValue = () => {
} else if (settings.source === 'form') {
value = settingsValues.valueFromForm(settings.form);
}
if (!value.properties) {
value.properties = {};
}
return Object.assign({},
settingsValues.valueFromJson(DefaultSettings.json),
value);