diff --git a/docs/.vitepress/theme/components/ColorPicker.vue b/docs/.vitepress/theme/components/ColorPicker.vue index efafa54ba..a4102dace 100644 --- a/docs/.vitepress/theme/components/ColorPicker.vue +++ b/docs/.vitepress/theme/components/ColorPicker.vue @@ -202,7 +202,6 @@ onMounted(async () => { }) watch(selectedColor, async (color) => { - if (!color) return; const theme = generateThemeFromColor(color) themeRegistry[`color-${color}`] = theme // Explicitly set the theme to override any previous selection @@ -226,7 +225,7 @@ const toggleAmoled = () => {