fix: Make sure team members are loaded before loading pull requests

Signed-off-by: Marley Powell <Marley.Powell@exclaimer.com>
This commit is contained in:
Marley Powell
2022-03-30 14:42:01 +01:00
parent 236245d9f8
commit a8280a5600
@@ -110,6 +110,8 @@ export class PullRequestsDashboardProvider {
const dashboardPullRequests =
await this.azureDevOpsApi.getDashboardPullRequests(projectName, options);
await this.getAllTeams(); // Make sure team members are loaded
return dashboardPullRequests.map(pr => {
if (pr.createdBy?.id) {
const teamIds = this.teamMembers.get(pr.createdBy.id)?.memberOf;