mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-09 03:37:45 +03:00
fix: prevent error when injecting empty theme CSS
This commit is contained in:
parent
4758b8c05a
commit
4535ebc530
@ -35,7 +35,10 @@ export const ThemeCard = ({ theme, onListUpdated }: ThemeCardProps) => {
|
||||
});
|
||||
}
|
||||
|
||||
if (currentTheme.code) {
|
||||
injectCustomCss(currentTheme.code);
|
||||
}
|
||||
|
||||
await window.electron.updateCustomTheme(currentTheme.id, {
|
||||
...currentTheme,
|
||||
isActive: true,
|
||||
|
Loading…
Reference in New Issue
Block a user