Parcourir la source

Updates multiple enrichment items

main
Keith Daulton il y a 1 an
Parent
révision
985a511633
1 fichiers modifiés avec 7 ajouts et 7 suppressions
  1. +7
    -7
      src/plus/webviews/focus/focusWebview.ts

+ 7
- 7
src/plus/webviews/focus/focusWebview.ts Voir le fichier

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

Chargement…
Annuler
Enregistrer