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
Improve invalidateQueries for useToggleDeleteProjectProtection
carlosmonastyrski1d8c513da11a
diff --git a/frontend/src/hooks/api/workspace/queries.tsx b/frontend/src/hooks/api/workspace/queries.tsxindex 93f6b51e18..ca8feb6b69 100644--- a/frontend/src/hooks/api/workspace/queries.tsx+++ b/frontend/src/hooks/api/workspace/queries.tsx@@ -336,8 +336,8 @@ export const useUpdateWorkspaceVersionLimit = () => {});return data.workspace;},- onSuccess: () => {- queryClient.invalidateQueries({ queryKey: workspaceKeys.getAllUserWorkspace() });+ onSuccess: (dto) => {+ queryClient.invalidateQueries({ queryKey: workspaceKeys.getAllUserWorkspace(dto.type) });}});};