Sfoglia il codice sorgente

Updates multiple enrichment items

main
Keith Daulton 1 anno fa
parent
commit
985a511633
1 ha cambiato i file con 7 aggiunte e 7 eliminazioni
  1. +7
    -7
      src/plus/webviews/focus/focusWebview.ts

+ 7
- 7
src/plus/webviews/focus/focusWebview.ts Vedi File

@ -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) {

Caricamento…
Annulla
Salva