From cdc922dc9b7271e8854e2b1d8f098e992923cce4 Mon Sep 17 00:00:00 2001 From: eight Date: Tue, 16 Oct 2018 23:38:03 +0800 Subject: [PATCH] Fix: the config dialog is broken --- manage/config-dialog.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manage/config-dialog.js b/manage/config-dialog.js index 4006b9f5..de50b7b7 100644 --- a/manage/config-dialog.js +++ b/manage/config-dialog.js @@ -120,7 +120,8 @@ function configDialog(style) { } if (!bgStyle) { API.getStyle(style.id, true) - .then(([bgStyle]) => save({anyChangeIsDirty}, bgStyle || {})); + .catch(() => ({})) + .then(bgStyle => save({anyChangeIsDirty}, bgStyle)); return; } style = style.sections ? Object.assign({}, style) : style;