Skip to content

Commit 64f2dca

Browse files
fix(prs): distinguish selected reviews by host
1 parent 3a2c097 commit 64f2dca

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

‎apps/web/src/routes/_chat.pull-requests.tsx‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1438,7 +1438,14 @@ function PullRequestsRouteView() {
14381438
repository: activePullRequestSurface.repository,
14391439
number: activePullRequestSurface.number,
14401440
projectId: activePullRequestSurface.projectId as ProjectId,
1441-
...(activePullRequestSurface.host ? { host: activePullRequestSurface.host } : {}),
1441+
host:
1442+
activePullRequestSurface.host ??
1443+
(selectedProject?.repositoryIdentity
1444+
? pullRequestHostOf(
1445+
selectedProject.repositoryIdentity,
1446+
selectedProject.repositoryIdentity.provider as SourceControlProviderKind,
1447+
)
1448+
: undefined),
14421449
}
14431450
: null;
14441451

@@ -1640,6 +1647,7 @@ function PullRequestsRouteView() {
16401647
selected={
16411648
selected?.environmentId === entry.environmentId &&
16421649
selected.repository === entry.repository &&
1650+
selected.host?.toLowerCase() === entry.host.toLowerCase() &&
16431651
selected.number === entry.number
16441652
}
16451653
onSelect={selectEntry}

0 commit comments

Comments
 (0)