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
commit 94f134c6a7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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);
}