Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 2bbdbf8

Browse files
Restoring session field
1 parent 8a7454f commit 2bbdbf8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/GitHub.App/ViewModels/GitHubPane/PullRequestAnnotationsViewModel.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ public class PullRequestAnnotationsViewModel : PanePageViewModelBase, IPullReque
2121
readonly IPullRequestSessionManager sessionManager;
2222
readonly IPullRequestEditorService pullRequestEditorService;
2323

24+
IPullRequestSession session;
2425
string title;
2526
string checkSuiteName;
2627
string checkRunName;
@@ -59,7 +60,7 @@ public async Task InitializeAsync(ILocalRepositoryModel localRepository, IConnec
5960
RemoteRepositoryOwner = owner;
6061
PullRequestNumber = pullRequestNumber;
6162
CheckRunId = checkRunId;
62-
var session = await sessionManager.GetSession(owner, repo, pullRequestNumber);
63+
session = await sessionManager.GetSession(owner, repo, pullRequestNumber);
6364
Load(session.PullRequest);
6465
}
6566
finally

0 commit comments

Comments
 (0)