Merge pull request #4301 from zyhfish/task/fix-add-page-issue

Fix Add Page Issue
This commit is contained in:
Shaun Walker
2024-06-01 09:04:28 -04:00
committed by GitHub

View File

@ -275,7 +275,7 @@
}
// get modules for current page
if (PageState.Modules == null || PageState.Modules.First().PageId != page.PageId)
if (PageState.Modules == null || (PageState.Modules.Any() && PageState.Modules.First().PageId != page.PageId))
{
modules = await SiteService.GetModulesAsync(site.SiteId, page.PageId);
}