Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
fix: invalidate ref tree query on batch edit
Scott Wilson0c0ec4f63e8d
diff --git a/frontend/src/hooks/api/secrets/mutations.tsx b/frontend/src/hooks/api/secrets/mutations.tsxindex 6864ab61b1..3ba83c223b 100644--- a/frontend/src/hooks/api/secrets/mutations.tsx+++ b/frontend/src/hooks/api/secrets/mutations.tsx@@ -578,6 +578,11 @@ export const useCreateCommit = () => {queryClient.invalidateQueries({queryKey: secretKeys.getProjectSecret({ projectId, environment, secretPath })});+ queryClient.invalidateQueries({+ predicate: (query) =>+ query.queryKey[0] === "secret-reference-tree" &&+ (query.queryKey[1] as { projectId?: string })?.projectId === projectId+ });queryClient.invalidateQueries({queryKey: secretSnapshotKeys.list({ environment, projectId, directory: secretPath })});