set default properties

jh-changes
Shin'ya Ueoka 7 years ago
parent 635fa315be
commit 1b2a5462f3
  1. 3
      src/shared/settings/storage.js

@ -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);