diff --git a/src/components/settings_modal/tabs/style_tab/style_tab.js b/src/components/settings_modal/tabs/style_tab/style_tab.js index 343b56aa..cba21a0c 100644 --- a/src/components/settings_modal/tabs/style_tab/style_tab.js +++ b/src/components/settings_modal/tabs/style_tab/style_tab.js @@ -523,9 +523,14 @@ export default { }) exports.computeColor = (color) => { - const computedColor = findColor(color, { dynamicVars: dynamicVars.value, staticVars: staticVars.value }) - if (computedColor) { - return rgb2hex(computedColor) + let computedColor + try { + computedColor = findColor(color, { dynamicVars: dynamicVars.value, staticVars: staticVars.value }) + if (computedColor) { + return rgb2hex(computedColor) + } + } catch (e) { + console.warn(e) } return null }