Merge pull request #15779 from deepan10/azure-devops

fixed: current user team ids fetch issue in azure-devops plugin
This commit is contained in:
Johan Haals
2023-01-17 16:56:16 +01:00
committed by GitHub
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-azure-devops': patch
---
Fixed `AssignedToCurrentUsersTeams` & `CreatedByCurrentUsersTeams` filter in `AzurePullRequestsPage` component.
@@ -31,7 +31,7 @@ export function useUserTeamIds(userId: string | undefined): {
error,
} = useAsync(() => {
return userId ? api.getUserTeamIds(userId) : Promise.resolve(undefined);
}, [api]);
}, [userId, api]);
return {
teamIds,