Merge pull request #3326 from ijaz-saeed/dev

Empty _themetype check to avoid page crash
This commit is contained in:
Shaun Walker
2023-09-26 10:23:02 -04:00
committed by GitHub

View File

@ -375,6 +375,10 @@
// appearance
_title = _page.Title;
_themetype = _page.ThemeType;
if (string.IsNullOrEmpty(_themetype))
{
_themetype = PageState.Site.DefaultThemeType;
}
_themes = ThemeService.GetThemeControls(PageState.Site.Themes);
_containers = ThemeService.GetContainerControls(PageState.Site.Themes, _themetype);
_containertype = _page.DefaultContainerType;