浏览代码

Updates multiple enrichment items

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

+ 7
- 7
src/plus/webviews/focus/focusWebview.ts 查看文件

@ -598,19 +598,19 @@ function findEnrichedItems(item: SearchedPullRequestWithRemote | SearchedIssue,
let result;
// TODO: filter by entity id, type, and gitRepositoryId
if ((item as SearchedPullRequestWithRemote).pullRequest != null) {
result = enrichedItems.find(e => e.entityId === (item as SearchedPullRequestWithRemote).pullRequest.id);
result = enrichedItems.filter(e => e.entityId === (item as SearchedPullRequestWithRemote).pullRequest.id);
} else {
result = enrichedItems.find(e => e.entityId === (item as SearchedIssue).issue.id);
result = enrichedItems.filter(e => e.entityId === (item as SearchedIssue).issue.id);
}
if (result == null) return;
if (result.length === 0) return;
return [
{
return result.map(result => {
return {
id: result.id,
type: result.type,
},
];
};
});
}
function getPrRank(pr: SearchedPullRequest) {

正在加载...
取消
保存