diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2018-01-23 21:03:33 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2018-01-23 21:03:33 +0900 |
commit | 1b2a5462f35b1f864945120aa479afb5d351d9e5 (patch) | |
tree | feee35d5cda1088466117a62f20628c8b224fdb2 /src | |
parent | 635fa315be8e4a9bf284f5846c4acc7b952cf33a (diff) |
set default properties
Diffstat (limited to 'src')
-rw-r--r-- | src/shared/settings/storage.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shared/settings/storage.js b/src/shared/settings/storage.js index 25ebfcd..9b8045d 100644 --- a/src/shared/settings/storage.js +++ b/src/shared/settings/storage.js @@ -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); |