[themes] fix bug 51545

This commit is contained in:
Maxim Kadushkin 2021-08-02 11:02:11 +03:00
parent 5a7c45583d
commit 548c8eb759

View file

@ -262,7 +262,8 @@ define([
currentThemeId: function () {
var t = Common.localStorage.getItem('ui-theme') || Common.localStorage.getItem('ui-theme-id');
return get_ui_theme_name(t) || id_default_light_theme;
var id = get_ui_theme_name(t);
return !!themes_map[id] ? id : id_default_light_theme;
},
defaultThemeId: function (type) {