Fix: the config dialog is broken

This commit is contained in:
eight 2018-10-16 23:38:03 +08:00
parent e8b64d11a3
commit cdc922dc9b

View File

@ -120,7 +120,8 @@ function configDialog(style) {
} }
if (!bgStyle) { if (!bgStyle) {
API.getStyle(style.id, true) API.getStyle(style.id, true)
.then(([bgStyle]) => save({anyChangeIsDirty}, bgStyle || {})); .catch(() => ({}))
.then(bgStyle => save({anyChangeIsDirty}, bgStyle));
return; return;
} }
style = style.sections ? Object.assign({}, style) : style; style = style.sections ? Object.assign({}, style) : style;