Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

misc: add org scoping to mutation

Sheen Capadngan46abda9041fe
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));
}
});
};