From 7dcfedfc4586174b198560c5b7537a353c3ac5fd Mon Sep 17 00:00:00 2001 From: Keith Daulton Date: Thu, 5 Oct 2023 22:17:18 -0400 Subject: [PATCH] Updates enrichment to match by url --- src/plus/webviews/focus/focusWebview.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plus/webviews/focus/focusWebview.ts b/src/plus/webviews/focus/focusWebview.ts index df389f9..b1eb111 100644 --- a/src/plus/webviews/focus/focusWebview.ts +++ b/src/plus/webviews/focus/focusWebview.ts @@ -630,9 +630,9 @@ function findEnrichedItems( let result; // TODO: filter by entity id, type, and gitRepositoryId if ((item as SearchedPullRequestWithRemote).pullRequest != null) { - result = enrichedItems.filter(e => e.entityId === (item as SearchedPullRequestWithRemote).pullRequest.nodeId); + result = enrichedItems.filter(e => e.entityUrl === (item as SearchedPullRequestWithRemote).pullRequest.url); } else { - result = enrichedItems.filter(e => e.entityId === (item as SearchedIssueWithRank).issue.nodeId); + result = enrichedItems.filter(e => e.entityUrl === (item as SearchedIssueWithRank).issue.url); } if (result.length === 0) return;