fix(core-theming): CB-1412 use defaultThemeSettings.defaultTheme instead of defaultThemeId

This commit is contained in:
Naumov Alexey
2021-11-09 19:05:04 +03:00
parent a53e22f07e
commit bd3cf1ed8d
@@ -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;
}