diff --git a/MediaFeeder/MediaFeeder/Components/Pages/Sessions.razor b/MediaFeeder/MediaFeeder/Components/Pages/Sessions.razor index 5770df5..58b6e0b 100644 --- a/MediaFeeder/MediaFeeder/Components/Pages/Sessions.razor +++ b/MediaFeeder/MediaFeeder/Components/Pages/Sessions.razor @@ -17,6 +17,6 @@ protected override void OnParametersSet() { if (SessionManager != null) - SessionManager.UpdateEvent += StateHasChanged; + SessionManager.UpdateEvent += () => InvokeAsync(StateHasChanged); } } \ No newline at end of file diff --git a/MediaFeeder/MediaFeeder/Components/SessionInfo.razor b/MediaFeeder/MediaFeeder/Components/SessionInfo.razor index c1212d6..baefc3d 100644 --- a/MediaFeeder/MediaFeeder/Components/SessionInfo.razor +++ b/MediaFeeder/MediaFeeder/Components/SessionInfo.razor @@ -59,6 +59,6 @@ protected override void OnParametersSet() { if (Session != null) - Session.UpdateEvent += StateHasChanged; + Session.UpdateEvent += () => InvokeAsync(StateHasChanged); } }