fix #4349 - adding module in subsite in Interactive render mode

This commit is contained in:
sbwalker
2024-06-24 16:26:55 -04:00
parent af62a89a6b
commit 73abc511a8
2 changed files with 8 additions and 5 deletions

View File

@ -213,7 +213,7 @@
return;
}
if (PageState == null || refresh || PageState.Page.Path != route.PagePath)
if (refresh || PageState == null || PageState.Page.Path != route.PagePath)
{
page = site.Pages.FirstOrDefault(item => item.Path.Equals(route.PagePath, StringComparison.OrdinalIgnoreCase));
}
@ -275,7 +275,7 @@
}
// get modules for current page
if (PageState.Modules == null || (PageState.Modules.Any() && PageState.Modules.First().PageId != page.PageId))
if (refresh || PageState.Modules == null || !PageState.Modules.Any() || PageState.Modules.First().PageId != page.PageId)
{
modules = await SiteService.GetModulesAsync(site.SiteId, page.PageId);
}