Fix an issue for first time running theme code, theme will not be available (#1081)
This commit is contained in:
parent
61130b0a69
commit
ac9ac00163
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ export class AccountService implements OnDestroy {
|
|||
|
||||
localStorage.setItem(this.userKey, JSON.stringify(user));
|
||||
localStorage.setItem(this.lastLoginKey, user.username);
|
||||
if (user.preferences) {
|
||||
if (user.preferences && user.preferences.theme) {
|
||||
this.themeService.setTheme(user.preferences.theme.name);
|
||||
} else {
|
||||
this.themeService.setTheme(this.themeService.defaultTheme);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue