mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-20 09:43:57 +00:00
fix: prevent error when injecting empty theme CSS
This commit is contained in:
@@ -35,7 +35,10 @@ export const ThemeCard = ({ theme, onListUpdated }: ThemeCardProps) => {
|
||||
});
|
||||
}
|
||||
|
||||
injectCustomCss(currentTheme.code);
|
||||
if (currentTheme.code) {
|
||||
injectCustomCss(currentTheme.code);
|
||||
}
|
||||
|
||||
await window.electron.updateCustomTheme(currentTheme.id, {
|
||||
...currentTheme,
|
||||
isActive: true,
|
||||
|
||||
Reference in New Issue
Block a user