To address the error: Cannot read property 'root' of undefined TypeError: Cannot read property 'root' of undefined at Object.loadQuillContent

This commit is contained in:
Michael Washington 2019-11-29 18:21:39 -08:00
parent 07f09361b9
commit 3b02a936bd

View File

@ -78,16 +78,20 @@ else
string modifiedby;
DateTime modifiedon;
protected override async Task OnInitializedAsync()
protected override async Task
OnAfterRenderAsync(bool firstRender)
{
try
if (firstRender)
{
await LoadText();
}
catch (Exception ex)
{
await logger.LogError(ex, "An Error Occurred Loading Html/Text Content. " + ex.Message);
AddModuleMessage(ex.Message, MessageType.Error);
try
{
await LoadText();
}
catch (Exception ex)
{
await logger.LogError(ex, "An Error Occurred Loading Html/Text Content. " + ex.Message);
AddModuleMessage(ex.Message, MessageType.Error);
}
}
}