Merge pull request #15779 from deepan10/azure-devops
fixed: current user team ids fetch issue in azure-devops plugin
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user