Fix: the config dialog is broken
This commit is contained in:
parent
e8b64d11a3
commit
cdc922dc9b
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user