Skip to content

Commit

Permalink
Merge pull request #486 from RHEAGROUP/bug/GL214-loading-Bug-on-progr…
Browse files Browse the repository at this point in the history
…am-manager-dashboard

Fix wrong sessionService reference
  • Loading branch information
mserra-github authored Nov 22, 2023
2 parents 2849dce + 65854dc commit 2990954
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ public abstract class ApplicationBaseViewModel : HaveObjectChangedTracking, IApp
/// <param name="sessionService">The <see cref="ISessionService" /></param>
protected ApplicationBaseViewModel(ISessionService sessionService)
{
this.SessionService = sessionService;

this.Disposables.Add(CDPMessageBus.Current.Listen<SessionEvent>()
.Where(x => x.Session == this.SessionService?.Session && x.Status == SessionStatus.EndUpdate)
.SubscribeAsync(_ => this.OnSessionRefreshed()));

this.SessionService = sessionService;
}

/// <summary>
Expand Down

0 comments on commit 2990954

Please sign in to comment.