From 1b2c2a9933682799e5869cd702209d8953d26a2a Mon Sep 17 00:00:00 2001 From: dufu1991 Date: Tue, 21 Nov 2023 12:22:34 +0800 Subject: [PATCH] [stdf]Add JSDoc. v0.4.2 --- packages/stdf/theme/switchTheme.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }); } };