[themes/ui] Fix no rerendering

This commit is contained in:
amsyarasyiq 2024-03-28 21:21:47 +08:00
parent c8ec3c74d8
commit 08c6b5ee15

View file

@ -192,6 +192,7 @@ export async function installTheme(id: string) {
}
export function selectTheme(theme: Theme | null) {
if (theme) theme.selected = true;
Object.keys(themes).forEach(
k => themes[k].selected = themes[k].id === theme?.id
);