diff --git a/frontend/src/components/widget/DeWidget/customInput.js b/frontend/src/components/widget/DeWidget/customInput.js index e6d8ccf852..20034fc48e 100644 --- a/frontend/src/components/widget/DeWidget/customInput.js +++ b/frontend/src/components/widget/DeWidget/customInput.js @@ -51,7 +51,9 @@ export default { const newValue = { brColor, wordColor, innerBgColor } const cssVar = this.typeTransform() this.styleAttrs.forEach((ele, index) => { - document.documentElement.style.setProperty(cssVar[index], !isPanelDe ? '' : newValue[ele]) + if (newValue[ele]) { + document.documentElement.style.setProperty(cssVar[index], !isPanelDe ? '' : newValue[ele]) + } }) }, }