浏览代码

Updates enrichment to match by url

main
Keith Daulton 1年前
父节点
当前提交
7dcfedfc45
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      src/plus/webviews/focus/focusWebview.ts

+ 2
- 2
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;

正在加载...
取消
保存