Error: System.InvalidOperationException: The current thread is not associated with the Dispatcher

Could I get some ideas on where I might look to fix this error? Essentially, what I did was first create a protected IList of ids and account numbers then loaded them in Task OnInitializedAsync() method all in the CS code behind. Then I created a dropdown grid display of the list of account numbers. Finally, the below error occurs when I attempt to CANCEL out of the dialog which is in this case the Add.

blazor.server.js:1

   [2023-02-20T22:46:36.980Z] Error: System.InvalidOperationException: The current thread is not associated with the Dispatcher. Use InvokeAsync() to switch execution to the Dispatcher when triggering rendering or component state.

at Microsoft.AspNetCore.Components.Dispatcher.AssertAccess()
at Microsoft.AspNetCore.Components.RenderTree.Renderer.AddToRenderQueue(Int32 componentId, RenderFragment renderFragment)
at Microsoft.AspNetCore.Components.ComponentBase.StateHasChanged()
at Radzen.Blazor.RadzenDataGrid`1.Reload()
at VisionSuiteAccounting.Pages.AccountTransactions.AddButtonClick(MouseEventArgs args) in C:\Users\fastt\Documents\Visual Studio 2022\Projects\FlexOps\Asp.NET\Blazor\VisionSuiteAccounting\Pages\AccountTransactions.razor.cs:line 60
at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task)
at Radzen.Blazor.RadzenButton.OnClick(MouseEventArgs args)
at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task)
at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)

Hi @FastTrak,

We will need to see the actual code in order to troubleshoot. You can send us your application to info@radzen.com.