diff --git a/packages/stdf/theme/switchTheme.js b/packages/stdf/theme/switchTheme.js index bad7f80..ccf990f 100644 --- a/packages/stdf/theme/switchTheme.js +++ b/packages/stdf/theme/switchTheme.js @@ -94,7 +94,7 @@ export default theme => { setPropertyFunc('--theme-color-darkWhite', color.darkWhite); if (color.extend.length > 0) { color.extend.forEach((item, i) => { - setPropertyFunc(`--theme-color-extend${i}`, item.color); + setPropertyFunc(`--theme-color-extend${i}`, item?.color); }); } };