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; string modifiedby;
DateTime modifiedon; DateTime modifiedon;
protected override async Task OnInitializedAsync() protected override async Task
OnAfterRenderAsync(bool firstRender)
{ {
try if (firstRender)
{ {
await LoadText(); try
} {
catch (Exception ex) await LoadText();
{ }
await logger.LogError(ex, "An Error Occurred Loading Html/Text Content. " + ex.Message); catch (Exception ex)
AddModuleMessage(ex.Message, MessageType.Error); {
await logger.LogError(ex, "An Error Occurred Loading Html/Text Content. " + ex.Message);
AddModuleMessage(ex.Message, MessageType.Error);
}
} }
} }