mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
fix: prevent error when injecting empty theme CSS
This commit is contained in:
parent
4758b8c05a
commit
4535ebc530
1 changed files with 4 additions and 1 deletions
|
@ -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, {
|
await window.electron.updateCustomTheme(currentTheme.id, {
|
||||||
...currentTheme,
|
...currentTheme,
|
||||||
isActive: true,
|
isActive: true,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue