fix #4224 - reload page after adding module in Static Rendering

This commit is contained in:
sbwalker
2024-05-17 08:38:22 -04:00
parent fd641d77c7
commit b9b921de82
2 changed files with 14 additions and 4 deletions

View File

@ -29,7 +29,6 @@
{
try
{
content = "";
if (ShouldRender())
{
var htmltext = await HtmlTextService.GetHtmlTextAsync(ModuleState.ModuleId);
@ -38,6 +37,10 @@
content = htmltext.Content;
content = Utilities.FormatContent(content, PageState.Alias, "render");
}
else
{
content = "";
}
}
}
catch (Exception ex)