mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
fix(core-theming): CB-1412 use defaultThemeSettings.defaultTheme instead of defaultThemeId
This commit is contained in:
@@ -106,8 +106,8 @@ export class ThemeService extends Bootstrap {
|
||||
try {
|
||||
await this.loadThemeStylesAsync(themeId);
|
||||
} catch (e) {
|
||||
if (themeId !== this.defaultThemeId) {
|
||||
return this.changeThemeAsync(this.defaultThemeId); // try to fallback to default theme
|
||||
if (themeId !== defaultThemeSettings.defaultTheme) {
|
||||
return this.changeThemeAsync(defaultThemeSettings.defaultTheme); // try to fallback to default theme
|
||||
}
|
||||
throw e;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user