diff --git a/frontend/src/hooks/api/users/mutation.tsx b/frontend/src/hooks/api/users/mutation.tsx index 8785533c5c..26e932ac6d 100644 --- a/frontend/src/hooks/api/users/mutation.tsx +++ b/frontend/src/hooks/api/users/mutation.tsx @@ -107,8 +107,8 @@ export const useUpdateUserProjectFavorites = () => { return {}; }, - onSuccess: () => { - queryClient.invalidateQueries(userKeys.userProjectFavorites); + onSuccess: (_, { orgId }) => { + queryClient.invalidateQueries(userKeys.userProjectFavorites(orgId)); } }); };