feat: added role modify popup

This commit is contained in:
=
2024-10-25 00:59:39 +05:30
parent 3e8f1d8de7
commit 5ef81cd935
5 changed files with 472 additions and 40 deletions
+4 -1
View File
@@ -420,8 +420,11 @@ export const useUpdateUserWorkspaceRole = () => {
);
return membership;
},
onSuccess: (_, { workspaceId }) => {
onSuccess: (_, { workspaceId, membershipId }) => {
queryClient.invalidateQueries(workspaceKeys.getWorkspaceUsers(workspaceId));
queryClient.invalidateQueries(
workspaceKeys.getWorkspaceUserDetails(workspaceId, membershipId)
);
}
});
};