aboutsummaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2018-01-23 12:12:38 +0000
committerGitHub <noreply@github.com>2018-01-23 12:12:38 +0000
commitf58fa44cb4fda52d5589ce89ce0b3430c27270e6 (patch)
treefeee35d5cda1088466117a62f20628c8b224fdb2 /src/shared
parent635fa315be8e4a9bf284f5846c4acc7b952cf33a (diff)
parent1b2a5462f35b1f864945120aa479afb5d351d9e5 (diff)
Merge pull request #320 from ueokande/configuration-compatible
set default properties
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/settings/storage.js3
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);