From 56b50af8ae2f8df9863fe5cdfea8316f71b7d8b3 Mon Sep 17 00:00:00 2001 From: Mattias Granlund Date: Sat, 23 Dec 2023 18:12:48 +0200 Subject: [PATCH] Revert exclusion of closed PRs - state was more confusing when commit is integrated --- gitbutler-ui/src/lib/github/service.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gitbutler-ui/src/lib/github/service.ts b/gitbutler-ui/src/lib/github/service.ts index d5467fc17..f16fa0f95 100644 --- a/gitbutler-ui/src/lib/github/service.ts +++ b/gitbutler-ui/src/lib/github/service.ts @@ -128,9 +128,7 @@ export class GitHubService { get(branch: string | undefined): Observable | undefined { if (!branch) return; - return this.prs$.pipe( - map((prs) => prs.find((pr) => pr.targetBranch == branch && !pr.mergedAt)) - ); + return this.prs$.pipe(map((prs) => prs.find((pr) => pr.targetBranch == branch))); } /* TODO: Figure out a way to cleanup old behavior subjects */