From 1b2a5462f35b1f864945120aa479afb5d351d9e5 Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Tue, 23 Jan 2018 21:03:33 +0900 Subject: set default properties --- src/shared/settings/storage.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/shared') 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); -- cgit v1.2.3