Empty _themetype check to avoid page crash

without this check, admin dashboard -> Page Management -> Edit page
is crashing
This commit is contained in:
isaeed 2023-09-26 18:23:29 +05:00
parent c15586a1c4
commit 7a8cfcee35

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;