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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user