Skip to content

Commit

Permalink
misc: add org scoping to mutation
Browse files Browse the repository at this point in the history
  • Loading branch information
sheensantoscapadngan committed Jul 1, 2024
1 parent c976a5c commit 46abda9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/hooks/api/users/mutation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ export const useUpdateUserProjectFavorites = () => {

return {};
},
onSuccess: () => {
queryClient.invalidateQueries(userKeys.userProjectFavorites);
onSuccess: (_, { orgId }) => {
queryClient.invalidateQueries(userKeys.userProjectFavorites(orgId));
}
});
};

0 comments on commit 46abda9

Please sign in to comment.