Skip to content

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

Update queries.tsx

Daniel Hougaard60178a6ba69e
diff --git a/frontend/src/hooks/api/auth/queries.tsx b/frontend/src/hooks/api/auth/queries.tsx
index 1c26e07f8a..cba815fae6 100644
--- a/frontend/src/hooks/api/auth/queries.tsx
+++ b/frontend/src/hooks/api/auth/queries.tsx
@@ -79,8 +79,10 @@ export const useSelectOrganization = () => {
return data;
},
onSuccess: () => {
- queryClient.invalidateQueries(organizationKeys.getUserOrganizations);
- queryClient.invalidateQueries(workspaceKeys.getAllUserWorkspace);
+ queryClient.invalidateQueries([
+ organizationKeys.getUserOrganizations,
+ workspaceKeys.getAllUserWorkspace
+ ]);
}
});
};