From 3515cc8e639a6589d307c8313373b8c6415bef36 Mon Sep 17 00:00:00 2001 From: huzibaca Date: Tue, 5 Nov 2024 21:35:17 +0800 Subject: [PATCH] chore: update --- src/components/setting/mods/theme-viewer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/setting/mods/theme-viewer.tsx b/src/components/setting/mods/theme-viewer.tsx index 6e53970..bab2283 100644 --- a/src/components/setting/mods/theme-viewer.tsx +++ b/src/components/setting/mods/theme-viewer.tsx @@ -28,7 +28,7 @@ export const ThemeViewer = forwardRef((props, ref) => { useImperativeHandle(ref, () => ({ open: () => { setOpen(true); - setTheme({ ...theme_setting } || {}); + setTheme({ ...theme_setting }); }, close: () => setOpen(false), }));