File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,7 @@ export const useAssignTeamMembersRole = () => {
8585 } ) => assignTeamMembersRole ( data ) ,
8686 onSettled : ( _data , _error , { data : { scope } } ) => {
8787 queryClient . invalidateQueries ( { queryKey : authzQueryKeys . teamMembersAll ( scope ) } ) ;
88+ queryClient . invalidateQueries ( { queryKey : authzQueryKeys . permissionsByRole ( scope ) } ) ;
8889 } ,
8990 } ) ;
9091} ;
@@ -104,6 +105,7 @@ export const useRevokeUserRoles = () => {
104105 } ) => revokeUserRoles ( data ) ,
105106 onSettled : ( _data , _error , { data : { scope } } ) => {
106107 queryClient . invalidateQueries ( { queryKey : authzQueryKeys . teamMembersAll ( scope ) } ) ;
108+ queryClient . invalidateQueries ( { queryKey : authzQueryKeys . permissionsByRole ( scope ) } ) ;
107109 } ,
108110 } ) ;
109111} ;
You can’t perform that action at this time.
0 commit comments